Author: croberts
Date: 2012-04-24 15:50:15 +0000 (Tue, 24 Apr 2012)
New Revision: 5346
Modified:
trunk/cumin/python/cumin/grid/dashboard.py
trunk/cumin/python/cumin/stat.py
Log:
Additional tweaks to use the on-the-fly computed interval and setting max_samples to 250
for the utilization chart.
Modified: trunk/cumin/python/cumin/grid/dashboard.py
===================================================================
--- trunk/cumin/python/cumin/grid/dashboard.py 2012-04-24 15:27:23 UTC (rev 5345)
+++ trunk/cumin/python/cumin/grid/dashboard.py 2012-04-24 15:50:15 UTC (rev 5346)
@@ -96,7 +96,7 @@
chart = self.UtilChart(app, "util",
app.model.com_redhat_grid_plumage.OSUtil)
chart.stats = ["total", "unused", "owner",
"used"]
- chart.max_samples = 200
+ chart.max_samples = 250
chart.duration.param.default = "3600"
self.add_child(chart)
Modified: trunk/cumin/python/cumin/stat.py
===================================================================
--- trunk/cumin/python/cumin/stat.py 2012-04-24 15:27:23 UTC (rev 5345)
+++ trunk/cumin/python/cumin/stat.py 2012-04-24 15:50:15 UTC (rev 5346)
@@ -209,7 +209,7 @@
self.cls = cls
self.duration.add_state("2592000", "1 month")
self.duration.add_state("31557600", "1 year")
- self.max_samples = 100
+ self.max_samples = 0
def get_href_params(self, session):
params = list()
@@ -226,7 +226,6 @@
if self.mode:
params.append("mode=%s" % self.mode)
- params.append("interval=60") #may need to experiment on computing this
on the fly or use a value that matches the plumage sample rate
params.append("maxsamp=%s" % self.max_samples)
return params
Show replies by date