[tor-commits] [sbws/master] scanner: stop logging rtt when is not perform
juga at torproject.org
juga at torproject.org
Fri Dec 21 09:13:44 UTC 2018
commit f9c5a9dc29b9d3bb3f92315664384451951242bf
Author: juga0 <juga at riseup.net>
Date: Sun Dec 9 08:50:14 2018 +0000
scanner: stop logging rtt when is not perform
If rtt is configured to 0, the rtt measurements are not run,
but it was being logged that they're run
---
sbws/core/scanner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 80251ec..a9b4959 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -78,8 +78,8 @@ def measure_rtt_to_server(session, conf, dest, content_length):
be made, return None. Otherwise return a list of the RTTs (in seconds). '''
rtts = []
size = conf.getint('scanner', 'min_download_size')
- log.debug('Measuring RTT to %s', dest.url)
for _ in range(0, conf.getint('scanner', 'num_rtts')):
+ log.debug('Measuring RTT to %s', dest.url)
random_range = get_random_range_string(content_length, size)
success, data = timed_recv_from_server(session, dest, random_range)
if not success:
More information about the tor-commits
mailing list