[tor-commits] [sbws/master] generate: remove toflow option, it's the default

juga at torproject.org juga at torproject.org
Wed Nov 21 14:24:05 UTC 2018


commit ea1f58a885246040cd802f0888aacb51358f40a9
Author: juga0 <juga at riseup.net>
Date:   Mon Nov 19 18:15:06 2018 +0000

    generate: remove toflow option, it's the default
    
    So that is less confusing that it's the default.
    We already have an option for linear scaling and no scaling.
---
 sbws/core/generate.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 674956f..bd01b05 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -40,10 +40,12 @@ def gen_parser(sub):
                    'are, but scale them such that we have a budget of '
                    'scale_constant * num_measured_relays = bandwidth to give '
                    'out, and we do so proportionally')
-    p.add_argument('-t', '--scale-torflow', action='store_const',
-                   default=True, const=False,
-                   help='If specified, do not use bandwidth values as they '
-                   'are, but scale them in the way Torflow does.')
+    p.add_argument('-t', '--scale-torflow', action='store_true',
+                   default=True,
+                   help='If specified, scale measurements using torflow\'s '
+                   'method. This option is kept for compatibility with older '
+                   'versions and it is silently ignored, since it is the '
+                   'default.')
     p.add_argument('-w', '--raw', action='store_true',
                    help='If specified, do use bandwidth raw measurements '
                    'without any scaling.')





More information about the tor-commits mailing list