From: Steve Dickson Date: Wed, 8 Apr 2009 13:48:58 +0000 (-0400) Subject: The server stats were not being updated with the X-Git-Tag: nfs-utils-1-1-6-rc5~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=500fab45f73c0ba1bc442157ef3d7744f20e6b2a The server stats were not being updated with the -Z options causing the stats to be incorrect. Signed-off-by: Steve Dickson --- 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 {