diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 17:46:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 17:46:46 +1000 |
| commit | 49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c (patch) | |
| tree | cca174a3547cd68fc70316685e27e902b24daf10 /services/SystemUsage.qml | |
| parent | bar: battery popout use qstr (diff) | |
| download | caelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.tar.gz caelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.tar.bz2 caelestia-shell-49ce8f68a6dcb2ebac66b0200dbdb3a08decef3c.zip | |
systemusage: fix gpu temp
Diffstat (limited to 'services/SystemUsage.qml')
| -rw-r--r-- | services/SystemUsage.qml | 4 |
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++; } } |