Fix a bug which prevents "nfsstat -W" for server statistics from working.
This commit is contained in:
parent
174b0d419b
commit
70a8f993c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238701
@ -995,7 +995,6 @@ exp_sidewaysintpr(u_int interval, int clientOnly, int serverOnly)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
lastst = nfsstats;
|
|
||||||
}
|
}
|
||||||
if (serverOnly) {
|
if (serverOnly) {
|
||||||
printf("%s %6d %6d %6d %6d %6d %6d %6d %6d",
|
printf("%s %6d %6d %6d %6d %6d %6d %6d %6d",
|
||||||
@ -1019,8 +1018,8 @@ exp_sidewaysintpr(u_int interval, int clientOnly, int serverOnly)
|
|||||||
(nfsstats.srvrpccnt[NFSV4OP_READDIRPLUS] -
|
(nfsstats.srvrpccnt[NFSV4OP_READDIRPLUS] -
|
||||||
lastst.srvrpccnt[NFSV4OP_READDIRPLUS]));
|
lastst.srvrpccnt[NFSV4OP_READDIRPLUS]));
|
||||||
printf("\n");
|
printf("\n");
|
||||||
lastst = nfsstats;
|
|
||||||
}
|
}
|
||||||
|
lastst = nfsstats;
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
sleep(interval);
|
sleep(interval);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user