[or-cvs] r22615: {arm} Minor tweak to log messaging (syncing before release commit) (arm/trunk/interface/graphing)

Damian Johnson atagar1 at gmail.com
Wed Jul 7 15:11:54 UTC 2010


Author: atagar
Date: 2010-07-07 15:11:54 +0000 (Wed, 07 Jul 2010)
New Revision: 22615

Modified:
   arm/trunk/interface/graphing/bandwidthStats.py
Log:
Minor tweak to log messaging (syncing before release commit).



Modified: arm/trunk/interface/graphing/bandwidthStats.py
===================================================================
--- arm/trunk/interface/graphing/bandwidthStats.py	2010-07-07 04:21:05 UTC (rev 22614)
+++ arm/trunk/interface/graphing/bandwidthStats.py	2010-07-07 15:11:54 UTC (rev 22615)
@@ -18,7 +18,7 @@
 # valid keys for the accountingInfo mapping
 ACCOUNTING_ARGS = ("status", "resetTime", "read", "written", "readLimit", "writtenLimit")
 
-PREPOPULATE_SUCCESS_MSG = "Read a day of bandwidth history from the state file"
+PREPOPULATE_SUCCESS_MSG = "Read the last day of bandwidth history from the state file"
 PREPOPULATE_FAILURE_MSG = "Unable to prepopulate bandwidth information (%s)"
 
 DEFAULT_CONFIG = {"features.graph.bw.accounting.show": True, "features.graph.bw.accounting.rate": 10, "features.graph.bw.accounting.isTimeLong": False, "log.graph.bw.prepopulateSuccess": log.NOTICE, "log.graph.bw.prepopulateFailure": log.NOTICE}
@@ -161,7 +161,7 @@
     
     msg = PREPOPULATE_SUCCESS_MSG
     missingSec = time.time() - min(lastReadTime, lastWriteTime)
-    if missingSec: msg += " (last %s is missing)" % uiTools.getTimeLabel(missingSec, 0, True)
+    if missingSec: msg += " (%s is missing)" % uiTools.getTimeLabel(missingSec, 0, True)
     log.log(self._config["log.graph.bw.prepopulateSuccess"], msg)
     
     return True



More information about the tor-commits mailing list