svn commit: r238701 - head/usr.bin/nfsstat
Hiroki Sato
hrs at FreeBSD.org
Sun Jul 22 18:59:32 UTC 2012
Author: hrs
Date: Sun Jul 22 18:59:31 2012
New Revision: 238701
URL: http://svn.freebsd.org/changeset/base/238701
Log:
Fix a bug which prevents "nfsstat -W" for server statistics from working.
Modified:
head/usr.bin/nfsstat/nfsstat.c
Modified: head/usr.bin/nfsstat/nfsstat.c
==============================================================================
--- head/usr.bin/nfsstat/nfsstat.c Sun Jul 22 17:46:05 2012 (r238700)
+++ head/usr.bin/nfsstat/nfsstat.c Sun Jul 22 18:59:31 2012 (r238701)
@@ -995,7 +995,6 @@ exp_sidewaysintpr(u_int interval, int cl
);
}
printf("\n");
- lastst = nfsstats;
}
if (serverOnly) {
printf("%s %6d %6d %6d %6d %6d %6d %6d %6d",
@@ -1019,8 +1018,8 @@ exp_sidewaysintpr(u_int interval, int cl
(nfsstats.srvrpccnt[NFSV4OP_READDIRPLUS] -
lastst.srvrpccnt[NFSV4OP_READDIRPLUS]));
printf("\n");
- lastst = nfsstats;
}
+ lastst = nfsstats;
fflush(stdout);
sleep(interval);
}
More information about the svn-src-head
mailing list