]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsstat: Add -S/--since flag.
authordavid m. richter <richterd@citi.umich.edu>
Mon, 13 Aug 2007 19:16:14 +0000 (15:16 -0400)
committerNeil Brown <neilb@suse.de>
Wed, 15 Aug 2007 23:10:39 +0000 (09:10 +1000)
commit3779638fd686d951afbf5d3e9ff025614fea7748
tree16f72b7a2a84a5fea9b29168bc1dd90cb6fead5a
parent75cacf291575cab787615921f6d44febde910f7b
nfsstat: Add -S/--since flag.

Read statistics from the file given with -S/--since and display
the difference between those and the current statistics.  Valid stat files
are those in the form of /proc/net/rpc/nfs, /proc/net/rpc/nfsd, or any
"pretty" output from nfsstat itself.  Statistics that are missing from a
"pretty" stat file are treated as zeroes.

Similar to Neil Brown's suggestion, one might use this in
conjunction with watch(1) like this:

$ watch "nfsstat --since /tmp/stats; nfsstat >/tmp/stats"

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