Author: eallen
Date: 2011-03-23 14:01:15 +0000 (Wed, 23 Mar 2011)
New Revision: 4659
Modified:
trunk/cumin/python/cumin/grid/dashboard.py
Log:
Fix % calculation for slot capacity
Modified: trunk/cumin/python/cumin/grid/dashboard.py
===================================================================
--- trunk/cumin/python/cumin/grid/dashboard.py 2011-03-23 13:53:28 UTC (rev 4658)
+++ trunk/cumin/python/cumin/grid/dashboard.py 2011-03-23 14:01:15 UTC (rev 4659)
@@ -454,7 +454,7 @@
total_index = self.get_item_index(self.cls.Memory)
used = record[used_index]
total = record[total_index]
- return float(used/total) * 100.0
+ return float(used/(total * 1024)) * 100.0
except:
return 0
Show replies by date