mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
sysstat: reset on resume (after suspend)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user