[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Use args to filter bw lines
commit 19da64c866d2dabdd474dbe717c3c3ab11a9931d
Author: juga0 <juga@xxxxxxxxxx>
Date: Wed Sep 5 12:26:46 2018 +0000
Use args to filter bw lines
when creating a bw file from results
---
sbws/lib/v3bwfile.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 66a865b..5567c5c 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -469,8 +469,9 @@ class V3BWFile(object):
log.info('Processing results to generate a bandwidth list file.')
header = V3BWHeader.from_results(results, state_fpath)
bw_lines_raw = []
- for fp in results.keys():
- line = V3BWLine.from_results(results[fp])
+ for fp, values in results.items():
+ line = V3BWLine.from_results(values, secs_recent, secs_away,
+ min_num)
if line is not None:
bw_lines_raw.append(line)
if not bw_lines_raw:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits