From 1e2311088272f325b41581569d90b495cbad835c Mon Sep 17 00:00:00 2001 From: ilolipopi Date: Wed, 1 Dec 2021 13:57:00 +0800 Subject: [PATCH] Change CPU frequency to show the fastest core --- sysmontask/cpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysmontask/cpu.py b/sysmontask/cpu.py index 0c76b63..c87ae25 100644 --- a/sysmontask/cpu.py +++ b/sysmontask/cpu.py @@ -92,7 +92,7 @@ def cpuInit(self): print("Failed to get Cache information") # CPU Frequency - self.speed=ps.cpu_freq() + self.speed=max(ps.cpu_freq(1)) self.cpuMxSpeedLabelValue.set_text('{:.2f} GHz'.format(self.speed[2]/1000)) # Number fo drawing widgets to put in one column for different logical cpu counts @@ -226,4 +226,4 @@ def cpuUpdate(self): self.cpuUtilArray.insert(0,self.cpuUtil) for i in range(self.cpu_logical_cores): self.cpu_logical_cores_util_arrays[i].pop() - self.cpu_logical_cores_util_arrays[i].insert(0,temp[i]) \ No newline at end of file + self.cpu_logical_cores_util_arrays[i].insert(0,temp[i])