[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] new: scanner: Increment measurement attempt counter



commit a4b4bbae41e1618f61eb0dcccd8764bd03a73b99
Author: juga0 <juga@xxxxxxxxxx>
Date:   Thu Mar 7 11:58:52 2019 +0000

    new: scanner: Increment measurement attempt counter
    
    Part of #28567.
---
 sbws/core/scanner.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 98fa305..24a975b 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -492,6 +492,8 @@ def main_loop(args, conf, controller, relay_list, circuit_builder, result_dump,
             # Don't start measuring a relay if sbws is stopping.
             if settings.end_event.is_set():
                 break
+            relay_list.increment_recent_measurement_attempt_count()
+            target.increment_relay_recent_measurement_attempt_count()
             num_relays += 1
             # callback and callback_err must be non-blocking
             callback = result_putter(result_dump)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits