From 49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:46:46 +1000 Subject: systemusage: fix gpu temp --- services/SystemUsage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/SystemUsage.qml') diff --git a/services/SystemUsage.qml b/services/SystemUsage.qml index 3b74db4..1de0c57 100644 --- a/services/SystemUsage.qml +++ b/services/SystemUsage.qml @@ -159,9 +159,9 @@ Singleton { else if (line === "") eligible = false; else if (eligible) { - const match = line.match(/^\w+:\s+\+([0-9]+\.[0-9]+)°C/); + const match = line.match(/^(temp[0-9]+|GPU core|edge)+:\s+\+([0-9]+\.[0-9]+)°C/); if (match) { - sum += parseFloat(match[1]); + sum += parseFloat(match[2]); count++; } } -- cgit v1.2.3-freya