summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-04 17:46:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-04 17:46:46 +1000
commit49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c (patch)
treecca174a3547cd68fc70316685e27e902b24daf10
parentbar: battery popout use qstr (diff)
downloadcaelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.tar.gz
caelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.tar.bz2
caelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.zip
systemusage: fix gpu temp
-rw-r--r--services/SystemUsage.qml4
1 files changed, 2 insertions, 2 deletions
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++;
}
}