systemusage: fix gpu temp

This commit is contained in:
2 * r + 2 * t 2025-06-23 18:41:15 +10:00
parent a6dec5048c
commit 8a03505846

View file

@ -174,7 +174,7 @@ Singleton {
else if (line === "")
eligible = false;
else if (eligible) {
const match = line.match(/^(temp[0-9]+|GPU core|edge)+:\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[2]);
count++;