Author: eallen
Date: 2008-10-13 13:58:01 -0400 (Mon, 13 Oct 2008)
New Revision: 2628
Modified:
mgmt/trunk/cumin/python/cumin/pool.py
Log:
Use two decimal places for Pool stat percents
Modified: mgmt/trunk/cumin/python/cumin/pool.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/pool.py 2008-10-13 15:53:48 UTC (rev 2627)
+++ mgmt/trunk/cumin/python/cumin/pool.py 2008-10-13 17:58:01 UTC (rev 2628)
@@ -317,7 +317,7 @@
value = self.get_value(state)
if jobs:
percent = (value*1.0) / (jobs*1.0) * 100.0
- return jobs and "%2.1f" % percent or "-"
+ return jobs and "%2.2f" % percent or "-"
class PoolStatus(CuminStatus):