MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / process_net_total

Method process_net_total

task.py:2420–2427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2418 if not (os.path.isfile(self.proc_net_service) and os.path.isfile(self.base_service)):
2419 return
2420 def process_net_total():
2421 class_path = '{}/class'.format(PANEL_PATH)
2422 if class_path not in sys.path:
2423 sys.path.insert(0, class_path)
2424
2425 write_log("启动进程流量监控")
2426 import process_task
2427 process_task.process_network_total().start()
2428
2429 th = threading.Thread(target=process_net_total, daemon=True)
2430 th.start()

Callers

nothing calls this directly

Calls 4

write_logFunction · 0.70
formatMethod · 0.45
insertMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected