Author: eallen
Date: 2010-10-20 15:48:18 -0400 (Wed, 20 Oct 2010)
New Revision: 4399
Modified:
mgmt/trunk/cumin/python/cumin/stat.py
Log:
Adjust the max / min values of percent charts
Modified: mgmt/trunk/cumin/python/cumin/stat.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/stat.py 2010-10-20 18:10:28 UTC (rev 4398)
+++ mgmt/trunk/cumin/python/cumin/stat.py 2010-10-20 19:48:18 UTC (rev 4399)
@@ -1210,6 +1210,11 @@
max_val = (max_val / total) * 100.0
min_val = (min_val / total) * 100.0
+ max_val = round(max_val * 1.1 + 1)
+
+ if min_val < 0:
+ min_val = round(min_val * 1.1 - 1)
+
return max_val, min_val
def get_vals(self, session, samples, stat, text, duration, end_secs):
Show replies by date