From d6f43a86c910e4ab4ac217111ccc5dce2e9699a8 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 10 May 2024 02:16:39 +0800 Subject: [PATCH] Update system_api.py --- class/core/system_api.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/class/core/system_api.py b/class/core/system_api.py index bd8144c99..1e21b85ee 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -556,8 +556,7 @@ class system_api: ntime = time.time() - print("source",ntime - session['otime']) - + # print("source",ntime - session['otime']) networkInfo = {} networkInfo['upTotal'] = networkIo[0] networkInfo['downTotal'] = networkIo[1] @@ -587,7 +586,6 @@ class system_api: def getNetWorkIostat(self): netInfo = {} - netInfo['ALL'] = {} netInfo['ALL']['up'] = 0 netInfo['ALL']['down'] = 0 @@ -611,8 +609,7 @@ class system_api: stime = mtime - netio['time'] if not stime: stime = 1 - print("new:",stime) - + # print("new:",stime) netio_group = psutil.net_io_counters(pernic=True).keys() netio_cache = netio['info']