Author: eallen
Date: 2010-04-06 16:30:40 -0400 (Tue, 06 Apr 2010)
New Revision: 3895
Modified:
mgmt/newdata/cumin/python/cumin/model.py
Log:
Avoid limit by _qmf_update_time when getting incremental data for rate chart
Modified: mgmt/newdata/cumin/python/cumin/model.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/model.py 2010-04-06 20:04:09 UTC (rev 3894)
+++ mgmt/newdata/cumin/python/cumin/model.py 2010-04-06 20:30:40 UTC (rev 3895)
@@ -755,10 +755,9 @@
self.query.filters = list()
SqlComparisonFilter(self.query, parent_col, self.parent_id, "=")
- if delta:
- secs = 60*60
- when = "now() - interval '%i seconds'" % int(secs + secs2)
- SqlComparisonFilter(self.query, updated_col, when, ">=")
+ if not delta:
+ when = "now() - interval '%i seconds'" % int(secs + secs2)
+ SqlComparisonFilter(self.query, updated_col, when, ">=")
when2 = ""
if secs2:
when2 = "now() - interval '%i seconds'" % int(secs2)
Show replies by date