[rhmessaging-commits] rhmessaging commits: r1532 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Jan 3 12:46:34 EST 2008


Author: justi9
Date: 2008-01-03 12:46:34 -0500 (Thu, 03 Jan 2008)
New Revision: 1532

Modified:
   mgmt/cumin/python/cumin/widgets.py
Log:
Fixes chart upper bound calculation.



Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py	2008-01-03 13:32:29 UTC (rev 1531)
+++ mgmt/cumin/python/cumin/widgets.py	2008-01-03 17:46:34 UTC (rev 1532)
@@ -208,7 +208,7 @@
                 max_value = max(max(vals), max_value)
 
         max_value = max_value * 1.1
-        max_value = max_value + (10 - max_value % 100)
+        max_value = max_value + (10 - max_value % 10)
         chart.set_max_value(int(max_value))
 
         chart.plot_x_axis()




More information about the rhmessaging-commits mailing list