Whamcloud - gitweb
LU-7993 test: Fix division by 0 in info prints 59/19359/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 6 Apr 2016 16:09:55 +0000 (12:09 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:53:26 +0000 (03:53 +0000)
commit6888948c04711a716640d7dad634c10516ec1d1a
tree439c0cf3f7660e6c0535917fc810ff79128644ee
parent84030bf26c1763edf9ac17a8cd2765e9163294bf
LU-7993 test: Fix division by 0 in info prints

Some of the information only prints in sanity/116a don't account for a
0 in the minimum number and thus divide by zero, but only print if MIN
is above zero, so this just doesn't do the calculation if it isn't
needed.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I7003739f6b518f981a1058d41b19bca258e1d11e
Reviewed-on: http://review.whamcloud.com/19359
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh