[tor-commits] [sbws/master] Vote on the relays with few or close measurements

juga at torproject.org juga at torproject.org
Wed Jul 22 14:51:08 UTC 2020


commit 09905b6c65712fcb58d321a0e5425e5f17e7b91d
Author: juga0 <juga at riseup.net>
Date:   Tue Jun 23 12:07:29 2020 +0000

    Vote on the relays with few or close measurements
    
    to vote on approximately the same numbers of relays as Torflow.
    Torflow does not exclude relays with few or close measurements, though
    it is possible that because of the way it measures, there are no few
    or close measurements.
    
    Closes #34393
---
 sbws/globals.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/sbws/globals.py b/sbws/globals.py
index 01a147b..575a19f 100644
--- a/sbws/globals.py
+++ b/sbws/globals.py
@@ -81,8 +81,17 @@ TORFLOW_OBS_MEAN = 1
 TORFLOW_OBS_DECAYING = 3
 TORFLOW_ROUND_DIG = 3
 PROP276_ROUND_DIG = 2
-DAY_SECS = 86400
-NUM_MIN_RESULTS = 2
+# Number of seconds the measurements for a relay have to be distant from each
+# other, otherwise the relay would be excluded from the relays to vote on.
+# Ideally, this should be 86400 seconds (1 day).
+# To have sbws vote on approximately the same number of relays as Torflow,
+# leave it as None, to not exclude measurements.
+DAY_SECS = None
+# Minimum number of measurements for a relay to be included as a relay to vote
+# on.
+# Ideally, this should be 2.
+# As the constant before, leave it as 1 to not exclude measurements.
+NUM_MIN_RESULTS = 1
 MIN_REPORT = 60
 # Maximum difference between the total consensus bandwidth and the total in
 # in the bandwidth lines in percentage





More information about the tor-commits mailing list