]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/nfsstat/nfsstat.c
The server stats were not being updated with the
[nfs-utils.git] / utils / nfsstat / nfsstat.c
index 6d81f66c9329ef86935e6a9ad5bcb444f17f7ecb..5adb571a7c6858b9e36f20a7e39ffd73def4c9f1 100644 (file)
@@ -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 {