From 9e3aea485295446559f24c8efdb542d5cd0cd063 Mon Sep 17 00:00:00 2001 From: hrs Date: Sun, 22 Jul 2012 18:59:31 +0000 Subject: Fix a bug which prevents "nfsstat -W" for server statistics from working. --- usr.bin/nfsstat/nfsstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.bin') 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); } -- cgit v1.1