summaryrefslogtreecommitdiff
path: root/temperature
diff options
context:
space:
mode:
Diffstat (limited to 'temperature')
-rwxr-xr-xtemperature2
1 files changed, 1 insertions, 1 deletions
diff --git a/temperature b/temperature
index c368d8c..52f37d1 100755
--- a/temperature
+++ b/temperature
@@ -46,7 +46,7 @@ GetOptions("help|h" => \&help,
# Get chip temperature
open (SENSORS, "sensors -u $chip |") or die;
while (<SENSORS>) {
- if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) {
+ if (/^\s+.+:\s+[\+]*([\-]*\d+\.\d)/) {
$temperature = $1;
last;
}