aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 15:18:29 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 15:18:29 +0000
commit7f8e943a0adc62349aa3a304872f7a689631103c (patch)
tree0c0a5dca2d5fd9602f3f3b096145d2f74724c05e
parent6d8e2aa54fda9134071c5053dda5a45e647e82b4 (diff)
Fixed cputemp
-rwxr-xr-xmodules/cputemp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cputemp b/modules/cputemp
index 614e0e1..7563835 100755
--- a/modules/cputemp
+++ b/modules/cputemp
@@ -8,7 +8,7 @@ get_cputemp()
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000)
- CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); print $2}')"
+ CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); gsub("\\..", " "); print $2"°C"}')"
# elif [ "$CPU_TEMP" -le 10 ]; then
# echo "  $CPU_TEMP"