[rhmessaging-commits] rhmessaging commits: r1940 - in mgmt: notes and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Apr 18 10:34:33 EDT 2008


Author: justi9
Date: 2008-04-18 10:34:33 -0400 (Fri, 18 Apr 2008)
New Revision: 1940

Modified:
   mgmt/cumin/python/cumin/stat.py
   mgmt/notes/justin-todo.txt
Log:
Fix the chart left pinch problem, from a phony value

Modified: mgmt/cumin/python/cumin/stat.py
===================================================================
--- mgmt/cumin/python/cumin/stat.py	2008-04-17 21:20:52 UTC (rev 1939)
+++ mgmt/cumin/python/cumin/stat.py	2008-04-18 14:34:33 UTC (rev 1940)
@@ -189,9 +189,7 @@
                 prev = None
 
                 for sample in reversed(os):
-                    if prev is None:
-                        ns.insert(0, (sample[0], 0.0))
-                    else:
+                    if prev is not None:
                         rate = calc_rate(sample[1], prev[1],
                                          secs(sample[0]), secs(prev[0]))
 

Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt	2008-04-17 21:20:52 UTC (rev 1939)
+++ mgmt/notes/justin-todo.txt	2008-04-18 14:34:33 UTC (rev 1940)
@@ -34,8 +34,6 @@
 
  * Blow up if someone adds a child with an existing name
 
- * Fix the chart left side "pinch" problem
-
  * Move to just a single category for stats
 
 Deferred




More information about the rhmessaging-commits mailing list