[tor-commits] [sbws/master] Add new constants for scaling

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


commit d3a94d02420239e5b35073784077017c22d25220
Author: juga0 <juga at riseup.net>
Date:   Thu Aug 30 12:01:15 2018 +0000

    Add new constants for scaling
---
 sbws/globals.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sbws/globals.py b/sbws/globals.py
index daa0a55..5e7de85 100644
--- a/sbws/globals.py
+++ b/sbws/globals.py
@@ -29,7 +29,15 @@ DEFAULT_LOG_CONFIG_PATH = os.path.join(PKG_DIR, 'config.log.default.ini')
 USER_CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.sbws.ini')
 
 SOCKET_TIMEOUT = 60  # seconds
-SCALE_CONSTANT = 7500
+
+SBWS_SCALE_CONSTANT = 7500
+TORFLOW_SCALING = 1
+SBWS_SCALING = 2
+TORFLOW_BW_MARGIN = 0.05
+TORFLOW_OBS_LAST = 0
+TORFLOW_OBS_MEAN = 1
+TORFLOW_OBS_DECAYING = 3
+
 BW_LINE_SIZE = 510
 
 





More information about the tor-commits mailing list