[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit ea1f58a885246040cd802f0888aacb51358f40a9
Author: juga0 <juga@xxxxxxxxxx>
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.')



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits