diff --git a/modules/SystemStats.qml b/modules/SystemStats.qml index a9fe320..678f494 100644 --- a/modules/SystemStats.qml +++ b/modules/SystemStats.qml @@ -72,6 +72,13 @@ QtObject { history: hist.length > histLen ? hist.slice(hist.length - histLen) : hist }; }); + } else if (root.cpuCores.length !== ev.cores.length) { + // Keep count in sync so panel can size correctly before consumers activate + root.cpuCores = ev.cores.map(c => ({ + "usage": c.usage, + "freq_ghz": c.freq_ghz, + "history": [] + })); } } else if (ev.type === "temp") { root.tempCelsius = ev.celsius;