]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-iostat.py: divide by zero with fresh mount nfs-utils-1-2-3-rc4
authorKevin Constantine <kevin.constantine@disneyanimation.com>
Tue, 22 Jun 2010 21:43:19 +0000 (17:43 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 21:43:19 +0000 (17:43 -0400)
When an export is freshly mounted, /proc/self/mountstats displays age = 0.
This causes nfs-iostat.py to divide by zero throwing an error.  When we
have age = 0, other stats are greater than 0, so we'll set age = 1 and
print the relevant stats.

Signed-off-by: Kevin Constantine <kevin.constantine@disneyanimation.com>
Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found