systemusage: fix gpu temp

This commit is contained in:
2 * r + 2 * t 2025-06-04 17:46:46 +10:00
parent 79504271e4
commit 49ce8f68a6

View file

@ -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++;
}
}