This commit is contained in:
midoks
2018-12-13 01:09:38 +08:00
parent c740b4affb
commit 936592661b
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -3,13 +3,17 @@ import time
import sys
sys.path.append(os.getcwd() + '/class/core')
import public
import system_api
cpu_info = system_api.system_api().getCpuInfo()
if not os.path.exists(os.getcwd() + '/logs'):
os.mkdir(os.getcwd() + '/logs')
bt_port = public.readFile('data/port.pl')
bind = ['0.0.0.0:%s' % bt_port]
workers = 1
workers = cpu_info[1] + 1
threads = 1
backlog = 512
reload = False