[or-cvs] r20509: {torflow} Fix crash-causing typo and change the limit for number of su (torflow/branches/stable/NetworkScanners/BwAuthority)

mikeperry at seul.org mikeperry at seul.org
Wed Sep 9 07:34:01 UTC 2009


Author: mikeperry
Date: 2009-09-09 03:34:01 -0400 (Wed, 09 Sep 2009)
New Revision: 20509

Modified:
   torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py
Log:

Fix crash-causing typo and change the limit for number
of successful streams required.



Modified: torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py
===================================================================
--- torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py	2009-09-09 07:27:16 UTC (rev 20508)
+++ torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py	2009-09-09 07:34:01 UTC (rev 20509)
@@ -266,9 +266,11 @@
            num_routers = len(
                  sets.Set(this.selmgr.path_selector.entry_gen.rstr_routers
                            + this.selmgr.path_selector.exit_gen.rstr_routers))
-           if cond._num_streams < (2*num_routers*count)/3:
+           # If more than 35% of the 2-hop paths failed, keep going to get
+           # more measurements
+           if num_streams < 0.65*((num_routers*count)/2.0):
              plog("WARN", "Not enough streams yet. "+str(num_streams)+" < "+
-                        str(2*num_routers*count/3))
+                        str(0.65*(num_routers*count/2.0)))
              cond._finished = False
       cond.notify()
       cond.release()



More information about the tor-commits mailing list