[or-cvs] r20007: {torflow} Well, here's one reason it might not sleep at the right time (torflow/trunk/NetworkScanners/BwAuthority)

mikeperry at seul.org mikeperry at seul.org
Tue Jul 14 08:35:26 UTC 2009


Author: mikeperry
Date: 2009-07-14 04:35:26 -0400 (Tue, 14 Jul 2009)
New Revision: 20007

Modified:
   torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py
Log:

Well, here's one reason it might not sleep at the right time.



Modified: torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py
===================================================================
--- torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py	2009-07-14 08:29:02 UTC (rev 20006)
+++ torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py	2009-07-14 08:35:26 UTC (rev 20007)
@@ -41,6 +41,8 @@
 # If you really must make them http, be sure to change exit_ports to [80]
 # below, or else the scan will not finish.
 # TODO: As the network balances, these can become more uniform in size
+# TODO: We'll also want to try to prefer pairing unmeasured nodes 
+# together then, and use a different url set for them.
 #          cutoff percent                URL
 urls =         [(10,          "https://38.229.70.2/2M"),
                 (20,          "https://38.229.70.2/1M"),
@@ -79,8 +81,8 @@
   tor_dir = config.get('BwAuthority', 'tor_dir')
   max_fetch_time = config.getint('BwAuthority', 'max_fetch_time')
 
-  sleep_start = config.get('BwAuthority', 'sleep_stop')
-  sleep_stop = config.get('BwAuthority', 'sleep_start')
+  sleep_start = config.get('BwAuthority', 'sleep_start')
+  sleep_stop = config.get('BwAuthority', 'sleep_stop')
 
   sleep_start = tuple(map(int, sleep_start.split(":")))
   sleep_stop = tuple(map(int, sleep_stop.split(":")))



More information about the tor-commits mailing list