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);
        }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to