mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user