diff --git a/common/60_stats_per_cpu_core.py b/common/60_stats_per_cpu_core.py index d8fffb0..fabcbd0 100755 --- a/common/60_stats_per_cpu_core.py +++ b/common/60_stats_per_cpu_core.py @@ -15,7 +15,9 @@ def get_cpu_core_stat(num): except: continue - output = handler.read().strip().split()[1:] + output = handler.read().split('\n')[0] + output = output.split(' ')[1:10] + if len(output) != 9: continue