[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [pytorctl/master] Spurious len() call..
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
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