[or-cvs] r22992: {arm} fix: offset error for the x-axis labling depending on if acc (arm/trunk/interface/graphing)

Damian Johnson atagar1 at gmail.com
Thu Aug 19 16:12:13 UTC 2010


Author: atagar
Date: 2010-08-19 16:12:13 +0000 (Thu, 19 Aug 2010)
New Revision: 22992

Modified:
   arm/trunk/interface/graphing/bandwidthStats.py
Log:
fix: offset error for the x-axis labling depending on if accounting is set or not



Modified: arm/trunk/interface/graphing/bandwidthStats.py
===================================================================
--- arm/trunk/interface/graphing/bandwidthStats.py	2010-08-19 16:00:27 UTC (rev 22991)
+++ arm/trunk/interface/graphing/bandwidthStats.py	2010-08-19 16:12:13 UTC (rev 22992)
@@ -182,7 +182,7 @@
     # 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 = self.getContentHeight() + panel.graphHeight - 5
+      labelingLine = graphPanel.GraphStats.getContentHeight(self) + panel.graphHeight - 2
       
       # clears line
       panel.addstr(labelingLine, 0, " " * width)



More information about the tor-commits mailing list