summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-04-08 09:48:58 -0400
committerSteve Dickson <steved@redhat.com>2009-04-08 09:48:58 -0400
commit500fab45f73c0ba1bc442157ef3d7744f20e6b2a (patch)
treef16164ac46dcb1177519fa9a31bb3de71e5cb651
parentcb81340660112f9296205901b09c0668a480bc47 (diff)
downloadnfs-utils-500fab45f73c0ba1bc442157ef3d7744f20e6b2a.tar.gz
nfs-utils-500fab45f73c0ba1bc442157ef3d7744f20e6b2a.tar.xz
nfs-utils-500fab45f73c0ba1bc442157ef3d7744f20e6b2a.zip
The server stats were not being updated with the
-Z options causing the stats to be incorrect. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/nfsstat/nfsstat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c
index 6d81f66..5adb571 100644
--- a/utils/nfsstat/nfsstat.c
+++ b/utils/nfsstat/nfsstat.c
@@ -442,7 +442,11 @@ main(int argc, char **argv)
}
fflush(stdout);
- update_old_counters(clientinfo_tmp, clientinfo);
+ if (opt_srv)
+ update_old_counters(serverinfo_tmp, serverinfo);
+ if (opt_clt)
+ update_old_counters(clientinfo_tmp, clientinfo);
+
sleep(sleep_time);
}
} else {