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