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

[tor-commits] [sbws/master] Use recent_results, since min_num_success_results



commit 9b24a0b13c8d5203808f850c28aa6e7a04d70bcd
Author: juga0 <juga@xxxxxxxxxx>
Date:   Mon Oct 15 10:19:31 2018 +0000

    Use recent_results, since min_num_success_results
    
    has been removed. Also add logging
---
 sbws/lib/v3bwfile.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index e9cacb0..f0cd64a 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -280,7 +280,11 @@ class V3BWLine(object):
                           '{} results.'.format(min_num))
                 return None
             results_away = \
-                cls.results_away_each_other(min_num_success_results, secs_away)
+                cls.results_away_each_other(success_results, secs_away)
+            if not results_away:
+                log.debug("There are no results with relays' results away from"
+                          " each other {}".format(secs_away))
+                return None
             results_recent = cls.results_recent_than(results_away, secs_recent)
             if not results_recent:
                 return None



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