From ad892e122310ff1bcdd8b75c9dec334d48fad12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 11 Jan 2017 18:34:28 +0800 Subject: [PATCH] let 'transfer_enable' be an integer --- mujson_mgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mujson_mgr.py b/mujson_mgr.py index a880a1c..312bb0e 100644 --- a/mujson_mgr.py +++ b/mujson_mgr.py @@ -293,7 +293,7 @@ def main(): val = int(value) except: pass - user['transfer_enable'] = val * (1024 ** 3) + user['transfer_enable'] = int(val * 1024) * (1024 ** 2) elif key in ('-h', '--help'): print_server_help() sys.exit(0)