Author: eallen
Date: 2010-04-26 16:18:07 -0400 (Mon, 26 Apr 2010)
New Revision: 3938
Modified:
mgmt/newdata/cumin/python/cumin/inventory/system.py
Log:
TopQueue, TopSystems, TopSubmissions
Modified: mgmt/newdata/cumin/python/cumin/inventory/system.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/inventory/system.py 2010-04-26 20:17:25 UTC (rev
3937)
+++ mgmt/newdata/cumin/python/cumin/inventory/system.py 2010-04-26 20:18:07 UTC (rev
3938)
@@ -41,38 +41,6 @@
overview = SystemStats(app, "overview", self.object)
self.view.add_tab(overview)
-
-class TopSystemSet(TopTable):
- def __init__(self, app, name):
- super(TopSystemSet, self).__init__(app, name)
-
- col = self.NameColumn(app, "name")
- col.width = "60%"
- self.add_column(col)
-
- self.set_default_column(col)
-
- col = self.LoadColumn(app, "load")
- col.width = "35%"
- col.align = "right"
- self.add_column(col)
-
- class NameColumn(TopTableColumn):
- def render_title(self, session):
- return "Name"
-
- def render_content(self, session, data):
- system = Identifiable(data["id"])
- href = self.page.main.inventory.system.get_href(session, system)
- return fmt_link(href, data["name"],
link_title=data["name"])
-
- class LoadColumn(TopTableColumn):
- def render_title(self, session):
- return "Load Average"
-
- def render_content(self, session, data):
- return "%0.3f" % data["load_avg"]
-
class SystemGeneralStatSet(StatSet):
def __init__(self, app, name, object):
super(SystemGeneralStatSet, self).__init__(app, name, object)
Show replies by date