[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r23273: {arm} fix: wasn't dropping intermediate graph labels for tight bou (arm/trunk/src/interface/graphing)



Author: atagar
Date: 2010-09-21 07:31:50 +0000 (Tue, 21 Sep 2010)
New Revision: 23273

Modified:
   arm/trunk/src/interface/graphing/graphPanel.py
Log:
fix: wasn't dropping intermediate graph labels for tight bounds due to type issue



Modified: arm/trunk/src/interface/graphing/graphPanel.py
===================================================================
--- arm/trunk/src/interface/graphing/graphPanel.py	2010-09-21 04:05:46 UTC (rev 23272)
+++ arm/trunk/src/interface/graphing/graphPanel.py	2010-09-21 07:31:50 UTC (rev 23273)
@@ -304,8 +304,8 @@
       
       primaryMinBound = secondaryMinBound = 0
       if self.bounds == BOUNDS_TIGHT:
-        primaryMinBound = min(param.primaryCounts[self.updateInterval][1:graphCol + 1])
-        secondaryMinBound = min(param.secondaryCounts[self.updateInterval][1:graphCol + 1])
+        primaryMinBound = int(min(param.primaryCounts[self.updateInterval][1:graphCol + 1]))
+        secondaryMinBound = int(min(param.secondaryCounts[self.updateInterval][1:graphCol + 1]))
         
         # if the max = min (ie, all values are the same) then use zero lower
         # bound so a graph is still displayed