[tor-commits] [torflow/master] oops, missing offset

mikeperry at torproject.org mikeperry at torproject.org
Fri Jun 24 19:33:53 UTC 2011


commit 6c66500dcee8c53a75881514f7558e21d146f26c
Author: aagbsn <aagbsn at extc.org>
Date:   Thu Jun 16 20:16:32 2011 -0700

    oops, missing offset
---
 NetworkScanners/BwAuthority/bwauthority_child.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/NetworkScanners/BwAuthority/bwauthority_child.py b/NetworkScanners/BwAuthority/bwauthority_child.py
index 60f7a09..6f61c63 100755
--- a/NetworkScanners/BwAuthority/bwauthority_child.py
+++ b/NetworkScanners/BwAuthority/bwauthority_child.py
@@ -301,7 +301,7 @@ def main(argv):
     pct_step = hdlr.rank_to_percent(nodes_per_slice)
 
     # check to see if we are done
-    if (slice_num * pct_step > stop_pct):
+    if (slice_num * pct_step + start_pct > stop_pct):
         sys.exit(STOP_PCT_REACHED)
 
     speedrace(hdlr, slice_num*pct_step + start_pct, (slice_num + 1)*pct_step + start_pct, circs_per_node, save_every, out_dir,





More information about the tor-commits mailing list