summaryrefslogtreecommitdiff
path: root/services/SystemUsage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/SystemUsage.qml')
-rw-r--r--services/SystemUsage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/SystemUsage.qml b/services/SystemUsage.qml
index 9bf665a..d958dba 100644
--- a/services/SystemUsage.qml
+++ b/services/SystemUsage.qml
@@ -70,7 +70,7 @@ Singleton {
if (data) {
const stats = data.slice(1).map(n => parseInt(n, 10));
const total = stats.reduce((a, b) => a + b, 0);
- const idle = stats[3];
+ const idle = stats[3] + (stats[4] ?? 0);
const totalDiff = total - root.lastCpuTotal;
const idleDiff = idle - root.lastCpuIdle;