sysstat: reset on resume (after suspend)

This commit is contained in:
Lemmy
2026-02-06 15:51:24 -05:00
parent 518b67c2d3
commit c3a219e114
+10
View File
@@ -289,6 +289,16 @@ Singleton {
}
}
// Reset differential state after suspend so the first reading is treated as fresh
Connections {
target: Time
function onResumed() {
Logger.i("SystemStat", "System resumed - resetting differential state");
root.prevCpuStats = null;
root.prevTime = 0;
}
}
function restartGpuDetection() {
// Reset GPU state
root.gpuAvailable = false;