summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-07-22 18:59:31 +0000
committerhrs <hrs@FreeBSD.org>2012-07-22 18:59:31 +0000
commit9e3aea485295446559f24c8efdb542d5cd0cd063 (patch)
treeb31161d9ee18e3647dc84389b47ff1ef0cc31c76 /usr.bin
parentcd3a3d4b7a6ad0e79227f5c9cf98d41ea981c37e (diff)
downloadFreeBSD-src-9e3aea485295446559f24c8efdb542d5cd0cd063.zip
FreeBSD-src-9e3aea485295446559f24c8efdb542d5cd0cd063.tar.gz
Fix a bug which prevents "nfsstat -W" for server statistics from working.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nfsstat/nfsstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index dc73a69..efbaed5 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -995,7 +995,6 @@ exp_sidewaysintpr(u_int interval, int clientOnly, int serverOnly)
);
}
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 clientOnly, int serverOnly)
(nfsstats.srvrpccnt[NFSV4OP_READDIRPLUS] -
lastst.srvrpccnt[NFSV4OP_READDIRPLUS]));
printf("\n");
- lastst = nfsstats;
}
+ lastst = nfsstats;
fflush(stdout);
sleep(interval);
}
OpenPOWER on IntegriCloud