Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 18:59:31 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238701 - head/usr.bin/nfsstat
Message-ID:  <201207221859.q6MIxVh3015886@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207221859.q6MIxVh3015886>