aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:59:52 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:59:52 +0000
commit23643fabad3b78bb0ab15ae1cb96f49efbed8884 (patch)
tree17caee182a2a0d5e493b2b853334f2cf8f62b183 /modules
parent0435b402c541ba85097cd2f32dc11b91c27985da (diff)
Tweaked temperature modules
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/temperature2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/temperature b/modules/temperature
index 39fe39d..62ff63a 100755
--- a/modules/temperature
+++ b/modules/temperature
@@ -8,7 +8,7 @@ get_temperature()
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000)
- CPU_TEMP="$(sensors | grep temp1 | awk '{gsub("+", " "); print $2}')"
+ CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); print $2}')"
# elif [ "$CPU_TEMP" -le 10 ]; then
# echo "  $CPU_TEMP"