Skip to content

Commit

Permalink
fix(graph): prevent cpu temp error
Browse files Browse the repository at this point in the history
fix #88
  • Loading branch information
orblazer committed Jun 24, 2024
1 parent 9ed6b79 commit 616c86e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/contents/ui/components/sensors/CpuTemperature.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Item {
let value;
if (_sensor.enabled) {
value = _sensor.getValue();
if (value !== null) {
if (value != null) {
root.value = value;
return;
} else if (_failedAttempt++ > 5) {
Expand Down Expand Up @@ -60,6 +60,8 @@ Item {
if (data['exit code'] > 0) {
if (data.stderr === "Specified sensor(s) not found!\n") {
return;
} else if (data.stderr === "/bin/sh: line 1: sensors: command not found\n") {
return;
}
print(data.stderr);
} else {
Expand Down

0 comments on commit 616c86e

Please sign in to comment.