[or-cvs] r18057: {torctl} Fix bugs with slicing up just guards into percentiles. (torctl/trunk/python/TorCtl)
mikeperry at seul.org
mikeperry at seul.org
Sat Jan 10 05:18:23 UTC 2009
Author: mikeperry
Date: 2009-01-10 00:18:21 -0500 (Sat, 10 Jan 2009)
New Revision: 18057
Modified:
torctl/trunk/python/TorCtl/PathSupport.py
Log:
Fix bugs with slicing up just guards into percentiles.
Modified: torctl/trunk/python/TorCtl/PathSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/PathSupport.py 2009-01-10 05:17:39 UTC (rev 18056)
+++ torctl/trunk/python/TorCtl/PathSupport.py 2009-01-10 05:18:21 UTC (rev 18057)
@@ -749,7 +749,6 @@
self.exit_name = use_exit
self.use_guards = use_guards
self.geoip_config = geoip_config
-
self.restrict_guards_only = restrict_guards
def reconfigure(self, sorted_r):
@@ -764,14 +763,11 @@
if self.use_guards: entry_flags = ["Guard", "Valid", "Running"]
else: entry_flags = ["Valid", "Running"]
-
if self.restrict_guards_only:
- entry_flags = ["Guard","Valid","Running"]
nonentry_skip = 0
nonentry_fast = 100
else:
- entry_flags = ["Valid","Running"]
nonentry_skip = self.percent_skip
nonentry_fast = self.percent_fast
More information about the tor-commits
mailing list