mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update task.py
This commit is contained in:
@@ -214,9 +214,7 @@ def systemTask():
|
||||
used = count = 0
|
||||
reloadNum = 0
|
||||
network_up = network_down = diskio_1 = diskio_2 = networkInfo = cpuInfo = diskInfo = None
|
||||
# print 'task init'
|
||||
while True:
|
||||
# print 'task init 1'
|
||||
if not os.path.exists(filename):
|
||||
time.sleep(10)
|
||||
continue
|
||||
@@ -258,7 +256,6 @@ def systemTask():
|
||||
network_up = networkIo[0]
|
||||
network_down = networkIo[1]
|
||||
|
||||
# print "tmp:", tmp
|
||||
if not networkInfo:
|
||||
networkInfo = tmp
|
||||
if (tmp['up'] + tmp['down']) > (networkInfo['up'] + networkInfo['down']):
|
||||
@@ -287,7 +284,6 @@ def systemTask():
|
||||
diskInfo['write_time'] += tmp['write_time']
|
||||
diskio_1 = diskio_2
|
||||
|
||||
# print "disk:", diskInfo, count
|
||||
# print diskInfo
|
||||
if count >= 12:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user