From 2c8994500a76bedb962eb387098f197783d913d6 Mon Sep 17 00:00:00 2001 From: xuhe Date: Mon, 9 Dec 2024 14:25:53 +0800 Subject: [PATCH] Add disk info display for html report --- kyreport/ky_report.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kyreport/ky_report.py b/kyreport/ky_report.py index 34ceba8..24ec04a 100644 --- a/kyreport/ky_report.py +++ b/kyreport/ky_report.py @@ -48,7 +48,6 @@ class KyReport: 'sys_param': [], 'sys_msg' : [], 'hotspot_info': [], - 'common_cmd': {} } # setting timer info @@ -88,9 +87,8 @@ class KyReport: info['mem_info'] = self.build_info(Config.get_output_path() + 'memInfo.txt') if os.path.exists(Config.get_output_path() + 'netInfo.txt'): info['net_info'] = self.build_info(Config.get_output_path() + 'netInfo.txt') - - info['common_cmd']['pidstatinfo'] = GlobalParameter().pidstat_cmd - info['common_cmd']['subsarinfo'] = GlobalParameter().sub_sarall + if os.path.exists(Config.get_output_path() + 'diskInfo.txt'): + info['io_info'] = self.build_info(Config.get_output_path() + 'diskInfo.txt') # ending menu info -- Gitee