From 1a61eeed31a5802156fc22694f515ad0d85c3a1a Mon Sep 17 00:00:00 2001 From: Zader Zheng Date: Thu, 23 Apr 2015 21:59:45 +0800 Subject: sorry for my carelessness about the config --- lab_monitor_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lab_monitor_server.py') diff --git a/lab_monitor_server.py b/lab_monitor_server.py index 91bdbb9..cb48cf9 100644 --- a/lab_monitor_server.py +++ b/lab_monitor_server.py @@ -136,8 +136,8 @@ if __name__ == '__main__': format='[%(levelname)-7s] (%(threadName)-10s) %(message)s',) MAX_LENGTH = 65536 MAX_RECORDS = 32 - HTTP_PORT = config.get('HTTP', 'port') or 2333 - SOCKET_PORT = config.get('socket', 'port') or 2334 + HTTP_PORT = config.getint('HTTP', 'port') or 2333 + SOCKET_PORT = config.getint('socket', 'port') or 2334 HOST = '' lock = RWLock() -- cgit v1.2.3-70-g09d2