()
| 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() |