From 259aa1b93d6378128f48393848135fef91fbeeea Mon Sep 17 00:00:00 2001 From: Lemmy Date: Tue, 3 Mar 2026 19:26:34 -0500 Subject: [PATCH] sysstat: show cpu-cores at false by default --- Assets/settings-widgets-default.json | 2 +- Services/System/SystemStatService.qml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/settings-widgets-default.json b/Assets/settings-widgets-default.json index 45355fbb6..f6d2b41fb 100644 --- a/Assets/settings-widgets-default.json +++ b/Assets/settings-widgets-default.json @@ -156,7 +156,7 @@ "useMonospaceFont": true, "usePadding": false, "showCpuUsage": true, - "showCpuCores": true, + "showCpuCores": false, "showCpuFreq": false, "showCpuTemp": true, "showGpuTemp": false, diff --git a/Services/System/SystemStatService.qml b/Services/System/SystemStatService.qml index f33a10b28..b9b04b492 100644 --- a/Services/System/SystemStatService.qml +++ b/Services/System/SystemStatService.qml @@ -1161,15 +1161,17 @@ Singleton { root.coresUsage = new Array(nbCores).fill(0); let coresStats = []; + let newCoresUsage = root.coresUsage.slice(); for (let i = 0; i < nbCores; i++) { const coreCpuLine = lines[i + 1]; const currCoreStats = calculateLineUsage(coreCpuLine); const coreUsage = computeUsage(root.prevCpuCoresStats?.[i], currCoreStats); if (coreUsage >= 0) { - root.coresUsage[i] = coreUsage; + newCoresUsage[i] = coreUsage; } coresStats.push(currCoreStats); } + root.coresUsage = newCoresUsage; root.prevCpuCoresStats = coresStats; }