[tor-commits] [sbws/master] Add args to method to filter results
juga at torproject.org
juga at torproject.org
Tue Sep 18 09:26:12 UTC 2018
commit 54ccf2ce4d52845029757fab43772e5648c53644
Author: juga0 <juga at riseup.net>
Date: Wed Sep 5 12:20:02 2018 +0000
Add args to method to filter results
that are away from each other a min num of secs and have at least
x results
---
sbws/lib/v3bwfile.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 2d486ef..fcc80d1 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -254,7 +254,8 @@ class V3BWLine(object):
return self.bw_strv110
@classmethod
- def from_results(cls, results):
+ def from_results(cls, results, secs_recent=None, secs_away=None,
+ min_num=0):
"""Convert sbws results to relays' Bandwidth Lines
``bs`` stands for Bytes/seconds
More information about the tor-commits
mailing list