]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsstat: add -D/--diff-stat
authordavid m. richter <richterd@citi.umich.edu>
Tue, 31 Jul 2007 21:39:49 +0000 (17:39 -0400)
committerNeil Brown <neilb@suse.de>
Wed, 1 Aug 2007 00:37:32 +0000 (10:37 +1000)
commit9b640cdaa36e25e0f6e14a7a53237488717d4187
tree1b90b6bc85eabd8450b85c559cee6ff84b972e97
parentb129b318836c788e2f3bc6bc1811a1b7beac1b1e
nfsstat: add -D/--diff-stat

Add -D/--diff-stat: instead of immediately displaying total
collected NFS stats and exiting, nfsstat will take a snapshot of current
statistics and pause until the user hits ^C, at which point it takes a
second snapshot and then prints out the difference of the two; i.e.,
only the statistics collected during the pause.

Signed-off-by: David M. Richter <richterd@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/nfsstat/nfsstat.c