[tor-commits] [sbws/master] v3bwfile: ensure torflow's scaling is the default

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


commit 54078bd486720f664e583f2604b4260edee0c511
Author: juga0 <juga at riseup.net>
Date:   Mon Nov 19 18:29:50 2018 +0000

    v3bwfile: ensure torflow's scaling is the default
    
    Even if that method is call from generate with torflow's scaling
    by default.
---
 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 ffc15a1..23387a9 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -485,7 +485,8 @@ class V3BWFile(object):
     @classmethod
     def from_results(cls, results, state_fpath='',
                      scale_constant=SBWS_SCALE_CONSTANT,
-                     scaling_method=None, torflow_obs=TORFLOW_OBS_LAST,
+                     scaling_method=TORFLOW_SCALING,
+                     torflow_obs=TORFLOW_OBS_LAST,
                      torflow_cap=TORFLOW_BW_MARGIN,
                      torflow_round_digs=PROP276_ROUND_DIG,
                      secs_recent=None, secs_away=None, min_num=0,





More information about the tor-commits mailing list