Skip to content

Commit

Permalink
Merge pull request #635 from midoks/dev
Browse files Browse the repository at this point in the history
修复监控设置不生效问题
  • Loading branch information
midoks authored Dec 13, 2024
2 parents 6caedb5 + fc97eb1 commit 9501154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def systemTask():
from utils.system import monitor
try:
while True:
monitor.instance().run()
monitor_status = thisdb.getOption('monitor_status',type='monitor',default='open')
if monitor_status == 'open':
monitor.instance().run()
time.sleep(5)
except Exception as ex:
print('systemTask:',mw.getTracebackInfo())
Expand Down

0 comments on commit 9501154

Please sign in to comment.