summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin Constantine <kevin.constantine@disneyanimation.com>2010-06-22 17:43:19 -0400
committerSteve Dickson <steved@redhat.com>2010-06-22 17:43:19 -0400
commita8715bec8bd671135f20fc0422d2a9fc0993758a (patch)
tree86fe459e18621bafcf31dde52dcca6547ab8e6c9 /tests
parent9c3f7a220b4812c5d560db5fcacad790fc8b17af (diff)
downloadnfs-utils-a8715bec8bd671135f20fc0422d2a9fc0993758a.tar.gz
nfs-utils-a8715bec8bd671135f20fc0422d2a9fc0993758a.tar.xz
nfs-utils-a8715bec8bd671135f20fc0422d2a9fc0993758a.zip
nfs-iostat.py: divide by zero with fresh mount
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>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions