diff --git a/sysmontask/cpu.py b/sysmontask/cpu.py index 0c76b63..6d6d78c 100644 --- a/sysmontask/cpu.py +++ b/sysmontask/cpu.py @@ -77,7 +77,7 @@ def cpuInit(self): # CPU Caches try: - p=popen('lscpu|grep -i -m1 "L1d"') + p=popen('lscpu|grep -i -m1 "L1d cache"') self.cpuL1LabelValue.set_text(sub("[\s]","",p.read().split(':')[1])) p.close() @@ -172,7 +172,7 @@ def cpuUpdate(self): """ # CPU frequency self.speed=ps.cpu_freq() - cpuSpeedstring="{:.2f} Ghz".format(self.speed[0]/1000) + cpuSpeedstring="{:.2f} Ghz".format(self.speed[0]) self.cpuSpeedLabelValue.set_text(cpuSpeedstring) # CPU Utilisation @@ -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])