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

[or-cvs] r22998: {arm} fix: crashing error in bandwidth panel for wide screen displ (arm/trunk/interface/graphing)



Author: atagar
Date: 2010-08-20 14:26:43 +0000 (Fri, 20 Aug 2010)
New Revision: 22998

Modified:
   arm/trunk/interface/graphing/bandwidthStats.py
Log:
fix: crashing error in bandwidth panel for wide screen displays (caught by cjb)



Modified: arm/trunk/interface/graphing/bandwidthStats.py
===================================================================
--- arm/trunk/interface/graphing/bandwidthStats.py	2010-08-19 23:18:45 UTC (rev 22997)
+++ arm/trunk/interface/graphing/bandwidthStats.py	2010-08-20 14:26:43 UTC (rev 22998)
@@ -189,11 +189,11 @@
     self._processEvent(event.read / 1024.0, event.written / 1024.0)
   
   def draw(self, panel, width, height):
+    # line of the graph's x-axis labeling
+    labelingLine = graphPanel.GraphStats.getContentHeight(self) + panel.graphHeight - 2
+    
     # if display is narrow, overwrites x-axis labels with avg / total stats
     if width <= COLLAPSE_WIDTH:
-      # line of the graph's x-axis labeling
-      labelingLine = graphPanel.GraphStats.getContentHeight(self) + panel.graphHeight - 2
-      
       # clears line
       panel.addstr(labelingLine, 0, " " * width)
       graphCol = min((width - 10) / 2, self.maxCol)