[or-cvs] [pytorctl/master] Spurious len() call..

mikeperry at torproject.org mikeperry at torproject.org
Tue Aug 10 11:10:33 UTC 2010


Author: Mike Perry <mikeperry-git at fscked.org>
Date: Tue, 10 Aug 2010 04:09:46 -0700
Subject: Spurious len() call..
Commit: 2ed625aed4db8a6fb7f8823312b79da8f7a62bbb

---
 TorCtl.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TorCtl.py b/TorCtl.py
index 1b08a19..c1f8a97 100755
--- a/TorCtl.py
+++ b/TorCtl.py
@@ -1398,10 +1398,10 @@ class ConsensusTracker(EventHandler):
 
   def _sanity_check(self, list):
     if len(self.routers) > 1.5*self.consensus_count:
-      plog("WARN", "Router count of "+str(len(self.routers))+" exceeds consensus count "+str(len(self.consensus_count))+" by more than 50%")
+      plog("WARN", "Router count of "+str(len(self.routers))+" exceeds consensus count "+str(self.consensus_count)+" by more than 50%")
 
     if len(self.ns_map) > self.consensus_count:
-      plog("WARN", "NS map count of "+str(len(self.ns_map))+" exceeds consensus count "+str(len(self.consensus_count)))
+      plog("WARN", "NS map count of "+str(len(self.ns_map))+" exceeds consensus count "+str(self.consensus_count))
 
     downed =  filter(lambda r: r.down, list)
     for d in downed:
-- 
1.7.1



More information about the tor-commits mailing list