From 7d70a39419a99132529c005f2914907e38524cec Mon Sep 17 00:00:00 2001 From: Lemmy Date: Thu, 5 Mar 2026 09:50:30 -0500 Subject: [PATCH] sys-stat: ensure a minimum number of history entries so we can draw them --- Services/System/SystemStatService.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/System/SystemStatService.qml b/Services/System/SystemStatService.qml index b9b04b492..747215e47 100644 --- a/Services/System/SystemStatService.qml +++ b/Services/System/SystemStatService.qml @@ -76,7 +76,7 @@ Singleton { readonly property int cpuHistoryLength: Math.ceil(historyDurationMs / cpuUsageIntervalMs) readonly property int gpuHistoryLength: Math.ceil(historyDurationMs / gpuIntervalMs) readonly property int memHistoryLength: Math.ceil(historyDurationMs / memIntervalMs) - readonly property int diskHistoryLength: Math.ceil(historyDurationMs / diskIntervalMs) + readonly property int diskHistoryLength: Math.max(10, Math.ceil(historyDurationMs / diskIntervalMs)) readonly property int networkHistoryLength: Math.ceil(historyDurationMs / networkIntervalMs) property var cpuHistory: new Array(cpuHistoryLength).fill(0)