[rhmessaging-commits] rhmessaging commits: r3396 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu May 28 10:42:22 EDT 2009


Author: eallen
Date: 2009-05-28 10:42:22 -0400 (Thu, 28 May 2009)
New Revision: 3396

Modified:
   mgmt/trunk/cumin/python/cumin/charts.py
Log:
Fix the way stddev is charted.

Modified: mgmt/trunk/cumin/python/cumin/charts.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/charts.py	2009-05-28 14:14:44 UTC (rev 3395)
+++ mgmt/trunk/cumin/python/cumin/charts.py	2009-05-28 14:42:22 UTC (rev 3396)
@@ -197,7 +197,7 @@
 
             if dev:
                 cr.set_source_rgba(0, 0, 0, 0.66)
-                half_dev = int(dev/2)
+                half_dev = int(((float(dev) / float(self.y_max)) * self.height) / 2)
                 cr.move_to(x - dot_size, y - half_dev)
                 cr.line_to(x + dot_size, y - half_dev)
 




More information about the rhmessaging-commits mailing list