Author: justi9
Date: 2008-01-03 08:32:29 -0500 (Thu, 03 Jan 2008)
New Revision: 1531
Modified:
mgmt/cumin/python/cumin/widgets.py
Log:
Fixes a clients chart bug.
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-01-03 13:08:02 UTC (rev 1530)
+++ mgmt/cumin/python/cumin/widgets.py 2008-01-03 13:32:29 UTC (rev 1531)
@@ -203,7 +203,9 @@
max_value = 0
for stat in stats:
- max_value = max(max(values[stat]), max_value)
+ vals = values[stat]
+ if vals:
+ max_value = max(max(vals), max_value)
max_value = max_value * 1.1
max_value = max_value + (10 - max_value % 100)
Show replies by date