Author: eallen
Date: 2008-09-19 17:35:01 -0400 (Fri, 19 Sep 2008)
New Revision: 2504
Modified:
mgmt/trunk/cumin/python/cumin/stat.py
mgmt/trunk/cumin/python/cumin/stat.strings
Log:
Added ability overide statistics "rate" column name
Modified: mgmt/trunk/cumin/python/cumin/stat.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/stat.py 2008-09-19 16:07:40 UTC (rev 2503)
+++ mgmt/trunk/cumin/python/cumin/stat.py 2008-09-19 21:35:01 UTC (rev 2504)
@@ -40,6 +40,9 @@
stat, object = args
return stat.title
+ def render_rate_text(self, session, args):
+ return "Per Second"
+
def render_item_name(self, session, args):
stat, object = args
return stat.name
Modified: mgmt/trunk/cumin/python/cumin/stat.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/stat.strings 2008-09-19 16:07:40 UTC (rev 2503)
+++ mgmt/trunk/cumin/python/cumin/stat.strings 2008-09-19 21:35:01 UTC (rev 2504)
@@ -81,7 +81,7 @@
<tr>
<th style="width: 50%; text-align: left;">Statistic</th>
<th style="width: 25%;">Value</th>
- <th style="width: 25%;">Per Second</th>
+ <th style="width: 25%;">{rate_text}</th>
</tr>
</thead>
<tbody>
Show replies by date