Author: croberts
Date: 2011-05-04 15:04:19 +0000 (Wed, 04 May 2011)
New Revision: 4750
Modified:
trunk/cumin/python/cumin/stat.py
Log:
Now performing a sort on the stats being used to draw our graphs. This is to fix BZ
https://bugzilla.redhat.com/show_bug.cgi?id=699265 .
Modified: trunk/cumin/python/cumin/stat.py
===================================================================
--- trunk/cumin/python/cumin/stat.py 2011-05-04 11:41:23 UTC (rev 4749)
+++ trunk/cumin/python/cumin/stat.py 2011-05-04 15:04:19 UTC (rev 4750)
@@ -1053,7 +1053,7 @@
if secs(dt) < min_dt:
break
- vals.reverse()
+ vals.sort(key=lambda stat: stat["dt"], reverse=False) #here, we sort by
dt to be sure that our graphs are valid
return vals
def make_chart_lines(self, session, chart, line_type, stats, dot_size, halo_size,
line_width, samples, duration, end_secs, mode):