[tor-commits] [sbws/master] Fix earliest bandwidth from results

pastly at torproject.org pastly at torproject.org
Thu Jun 14 13:29:51 UTC 2018


commit d548abe8e48f05db86e2c356d0babfbedc23bac1
Author: juga0 <juga at riseup.net>
Date:   Wed Jun 13 06:12:41 2018 +0000

    Fix earliest bandwidth from results
    
    by mistake from_results was calling latest_bandwidth instead of
    earliest_bandwidth
---
 sbws/lib/v3bwfile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 4091912..71c9755 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -223,7 +223,7 @@ class V3BwHeader(object):
     def from_results(cls, conf, results):
         kwargs = dict()
         latest_bandwidth = cls.latest_bandwidth_from_results(results)
-        earliest_bandwidth = cls.latest_bandwidth_from_results(results)
+        earliest_bandwidth = cls.earliest_bandwidth_from_results(results)
         generator_started = cls.generator_started_from_file(conf)
         timestamp = str(latest_bandwidth)
         kwargs['latest_bandwidth'] = unixts_to_isodt_str(latest_bandwidth)





More information about the tor-commits mailing list