temperature: per-device breakdown in panel, device filter config option

This commit is contained in:
Damocles 2026-04-17 11:24:28 +02:00
parent 8bbe211dd4
commit 88a0886681
6 changed files with 144 additions and 16 deletions

View file

@ -32,7 +32,8 @@ QtObject {
// Temperature
property int tempCelsius: 0
property var tempHistory: [] // 150 samples @ 4s each 10 min
property var tempHistory: [] // 150 samples @ 4s each 10 min
property var tempDevices: [] // [{name, celsius}] sorted hottest-first
// GPU
property bool gpuAvailable: false
@ -95,6 +96,8 @@ QtObject {
root.tempCelsius = ev.celsius;
const th = root.tempHistory.concat([ev.celsius]);
root.tempHistory = th.length > 150 ? th.slice(th.length - 150) : th;
if (ev.devices)
root.tempDevices = ev.devices;
} else if (ev.type === "gpu") {
root.gpuAvailable = true;
root.gpuVendor = ev.vendor;