[tor-commits] [sbws/master] Add cli args to filter results

juga at torproject.org juga at torproject.org
Tue Sep 18 09:26:12 UTC 2018


commit 52488eae1a22e112f1317241ca6d40ab17103c2e
Author: juga0 <juga at riseup.net>
Date:   Wed Sep 5 12:43:21 2018 +0000

    Add cli args to filter results
    
    when generating bw files
---
 sbws/core/generate.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 4f80bb9..20ccbfe 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -49,6 +49,16 @@ def gen_parser(sub):
                    type=int,
                    help="Number of most significant digits to round bw "
                         "when scaling as Torflow. (Default: 3)")
+    p.add_argument('-p', '--secs-recent', default=None,
+                   help="How many secs in the past are results being "
+                        "still considered. Note this value will supersede "
+                        "data_period in the configuration. (Default: None)")
+    p.add_argument('-a', '--secs-away', default=DAY_SECS,
+                   help="How many secs results have to be away from each "
+                        "other. (Default: 86400 - one day -)")
+    p.add_argument('-n', '--min-num', default=NUM_MIN_RESULTS,
+                   help="Mininum number of a results to consider them."
+                        "(Default: 2)")
 
 
 def main(args, conf):





More information about the tor-commits mailing list