From 85955d6e6dbd142d2ff7dd5b08458387d6308339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sun, 12 Feb 2017 22:46:09 +0800 Subject: [PATCH] speed limit in KiB --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index 431fe9c..f6e9f7a 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -96,7 +96,7 @@ UDP_MAX_BUF_SIZE = 65536 class SpeedTester(object): def __init__(self, max_speed = 0): - self.max_speed = max_speed + self.max_speed = max_speed * 1024 self.timeout = 3 self._cache = deque() self.sum_len = 0