systemusage: fix gpu temp
This commit is contained in:
parent
79504271e4
commit
49ce8f68a6
1 changed files with 2 additions and 2 deletions
|
|
@ -159,9 +159,9 @@ Singleton {
|
||||||
else if (line === "")
|
else if (line === "")
|
||||||
eligible = false;
|
eligible = false;
|
||||||
else if (eligible) {
|
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) {
|
if (match) {
|
||||||
sum += parseFloat(match[1]);
|
sum += parseFloat(match[2]);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue