[tor-commits] [sbws/master] generate: Load all results, including error ones

juga at torproject.org juga at torproject.org
Sat Feb 23 10:57:26 UTC 2019

commit 9e31dcfb5662993a285e9b625e24255ef6f1e54d
Author: juga0 <juga at riseup.net>
Date:   Sat Feb 23 10:28:46 2019 +0000

    generate: Load all results, including error ones
    The bandwidth file is generated only with relays that have some
    successful measurements, but we forgot to load all results
    (including the relays with failed measurements) after we started
    to include the number of failure measurements in each relay
    bandwidth line.
    Closes #29568. Bugfix v0.4.0 (line introduced in v0.1.0).
 sbws/core/generate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 353bea0..df86029 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -94,7 +94,7 @@ def main(args, conf):
     reset_bw_ipv4_changes = conf.getboolean('general', 'reset_bw_ipv4_changes')
     reset_bw_ipv6_changes = conf.getboolean('general', 'reset_bw_ipv6_changes')
     results = load_recent_results_in_datadir(
-        fresh_days, datadir, success_only=True,
+        fresh_days, datadir,
     if len(results) < 1:

More information about the tor-commits mailing list