|
|
@ -3,13 +3,17 @@ import time |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
sys.path.append(os.getcwd() + '/class/core') |
|
|
|
sys.path.append(os.getcwd() + '/class/core') |
|
|
|
import public |
|
|
|
import public |
|
|
|
|
|
|
|
import system_api |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cpu_info = system_api.system_api().getCpuInfo() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not os.path.exists(os.getcwd() + '/logs'): |
|
|
|
if not os.path.exists(os.getcwd() + '/logs'): |
|
|
|
os.mkdir(os.getcwd() + '/logs') |
|
|
|
os.mkdir(os.getcwd() + '/logs') |
|
|
|
|
|
|
|
|
|
|
|
bt_port = public.readFile('data/port.pl') |
|
|
|
bt_port = public.readFile('data/port.pl') |
|
|
|
bind = ['0.0.0.0:%s' % bt_port] |
|
|
|
bind = ['0.0.0.0:%s' % bt_port] |
|
|
|
workers = 1 |
|
|
|
workers = cpu_info[1] + 1 |
|
|
|
threads = 1 |
|
|
|
threads = 1 |
|
|
|
backlog = 512 |
|
|
|
backlog = 512 |
|
|
|
reload = False |
|
|
|
reload = False |
|
|
|