[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r22949: {arm} fix: accounting information was being dropped on tor shutdow (arm/trunk/interface/graphing)
Author: atagar
Date: 2010-08-18 15:26:54 +0000 (Wed, 18 Aug 2010)
New Revision: 22949
Modified:
arm/trunk/interface/graphing/bandwidthStats.py
Log:
fix: accounting information was being dropped on tor shutdown
Modified: arm/trunk/interface/graphing/bandwidthStats.py
===================================================================
--- arm/trunk/interface/graphing/bandwidthStats.py 2010-08-18 15:24:51 UTC (rev 22948)
+++ arm/trunk/interface/graphing/bandwidthStats.py 2010-08-18 15:26:54 UTC (rev 22949)
@@ -51,7 +51,7 @@
self._titleStats = [] # force reset of title
self.new_desc_event(None) # updates title params
- if self._config["features.graph.bw.accounting.show"]:
+ if eventType == torTools.TOR_INIT and self._config["features.graph.bw.accounting.show"]:
self.isAccounting = conn.getInfo('accounting/enabled') == '1'
def prepopulateFromState(self):