fix: preserve core row count when grace timer clears cpuCores
This commit is contained in:
parent
6c37b6640c
commit
bc9eda464c
1 changed files with 5 additions and 1 deletions
|
|
@ -21,7 +21,11 @@ QtObject {
|
||||||
|
|
||||||
property var _coreGraceTimer: Timer {
|
property var _coreGraceTimer: Timer {
|
||||||
interval: 30000
|
interval: 30000
|
||||||
onTriggered: root.cpuCores = []
|
onTriggered: root.cpuCores = root.cpuCores.map(() => ({
|
||||||
|
"usage": 0,
|
||||||
|
"freq_ghz": 0,
|
||||||
|
"history": []
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
property var cpuCoreMaxFreq: []
|
property var cpuCoreMaxFreq: []
|
||||||
property var cpuCoreTypes: []
|
property var cpuCoreTypes: []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue