commit f7940f720b324e2823a142a2ee49eb01f826a7f5 Author: aagbsn aagbsn@extc.org Date: Fri Jun 17 16:41:05 2011 -0700
Log when stop_pct reached --- NetworkScanners/BwAuthority/bwauthority.py | 2 +- NetworkScanners/BwAuthority/bwauthority_child.py | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/NetworkScanners/BwAuthority/bwauthority.py b/NetworkScanners/BwAuthority/bwauthority.py index 52385f0..ad53663 100644 --- a/NetworkScanners/BwAuthority/bwauthority.py +++ b/NetworkScanners/BwAuthority/bwauthority.py @@ -30,7 +30,7 @@ def main(argv): if (p.returncode == 0): slice_num += 1 elif (p.returncode == bwauthority_child.STOP_PCT_REACHED): - plog('INFO', 'stop_pct reached, restarting from slice 0') + plog('INFO', 'restarting from slice 0') slice_num = 0 else: plog('WARN', 'Child process returned %s' % p.returncode) diff --git a/NetworkScanners/BwAuthority/bwauthority_child.py b/NetworkScanners/BwAuthority/bwauthority_child.py index ee87829..0de7998 100755 --- a/NetworkScanners/BwAuthority/bwauthority_child.py +++ b/NetworkScanners/BwAuthority/bwauthority_child.py @@ -305,6 +305,7 @@ def main(argv):
# check to see if we are done if (slice_num * pct_step + start_pct > stop_pct): + plog('INFO', 'stop_pct: %s reached. Exiting with %s' % (stop_pct, STOP_PCT_REACHED)) 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,
tor-commits@lists.torproject.org