Author: justi9
Date: 2007-11-02 11:46:24 -0400 (Fri, 02 Nov 2007)
New Revision: 1214
Modified:
mgmt/cumin/python/cumin/measurement.py
mgmt/cumin/python/cumin/page.strings
mgmt/cumin/python/cumin/widgets.py
Log:
Makes rate display briefer.
Modified: mgmt/cumin/python/cumin/measurement.py
===================================================================
--- mgmt/cumin/python/cumin/measurement.py 2007-11-02 15:36:42 UTC (rev 1213)
+++ mgmt/cumin/python/cumin/measurement.py 2007-11-02 15:46:24 UTC (rev 1214)
@@ -34,7 +34,7 @@
def render_item_extra(self, session, measure):
if measure.highlow:
- return "<small>high</small> %i
<small>low</small> %i" \
+ return "<small>high</small> %i
<small>low</small> %i" \
% (measure.get_high() or 0, measure.get_low() or 0)
else:
unit = self.unit_abbrevs.get(measure.unit, measure.unit)
Modified: mgmt/cumin/python/cumin/page.strings
===================================================================
--- mgmt/cumin/python/cumin/page.strings 2007-11-02 15:36:42 UTC (rev 1213)
+++ mgmt/cumin/python/cumin/page.strings 2007-11-02 15:46:24 UTC (rev 1214)
@@ -395,7 +395,7 @@
float: right;
margin: 0.5em;
padding: 0.75em 1em;
- width: 18em;
+ width: 15em;
}
div.mstatus h2 {
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2007-11-02 15:36:42 UTC (rev 1213)
+++ mgmt/cumin/python/cumin/widgets.py 2007-11-02 15:46:24 UTC (rev 1214)
@@ -38,7 +38,8 @@
return predicate and "Yes" or "No"
def rate(value, unit1, unit2):
- return "%i <small>%s/%s</small>" % (value, unit1, unit2)
+ #return "%i <small>%s/%s</small>" % (value, unit1, unit2)
+ return "%i<small>/%s</small>" % (value, unit2)
class CuminFrame(Frame, ModeSet):
def __init__(self, app, name):
Show replies by date