[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Fix earliest bandwidth from results
commit d548abe8e48f05db86e2c356d0babfbedc23bac1
Author: juga0 <juga@xxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits