From bae2bac8f482b259aef94e90b9cfd270792ebedc Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 8 Aug 2025 16:32:59 -0400 Subject: [PATCH] show cpu percent relative to a core --- Services/SysMonitorService.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/SysMonitorService.qml b/Services/SysMonitorService.qml index 256e7213..3ab358a0 100644 --- a/Services/SysMonitorService.qml +++ b/Services/SysMonitorService.qml @@ -313,10 +313,10 @@ Singleton { if (prev !== null && totalDiff > 0) { // Per share all CPUs (matches gnome system monitor) - cpuShare = 100 * Math.max(0, pticks - prev) / totalDiff + //cpuShare = 100 * Math.max(0, pticks - prev) / totalDiff // per-share per-core - //cpuShare = 100 * cpuCores * Math.max(0, pticks - prev) / totalDiff; + cpuShare = 100 * cpuCores * Math.max(0, pticks - prev) / totalDiff; } lastProcTicks[pid] = pticks // update cache