[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master] Woops, this check was reversed.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Thu, 30 Sep 2010 19:04:54 -0700
Subject: Woops, this check was reversed.
Commit: 9dd68b5d4c28a4a7a785cae5ee9b2b95dd60c9d4

---
 NetworkScanners/ExitAuthority/snakeinspector.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/snakeinspector.py b/NetworkScanners/ExitAuthority/snakeinspector.py
index fcabf78..fa470b5 100755
--- a/NetworkScanners/ExitAuthority/snakeinspector.py
+++ b/NetworkScanners/ExitAuthority/snakeinspector.py
@@ -225,7 +225,7 @@ def main(argv):
       if r.site_result_rate[1] != 0 and \
           conf.siterate < (100.0*r.site_result_rate[0])/r.site_result_rate[1]:
         continue
-    if 100.0/conf.exitrate > r.exit_result_rate[1]:
+    if 100.0/(100-conf.exitrate) > r.exit_result_rate[1]:
       if r.exit_result_rate[1] != 0 and \
           conf.exitrate > (100.0*r.exit_result_rate[0])/r.exit_result_rate[1]:
         continue
-- 
1.7.1