mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
rpi_temp: remove dependency on 'bc'
This commit is contained in:
parent
82f76ceafb
commit
f360f189fd
1 changed files with 1 additions and 1 deletions
|
@ -28,6 +28,6 @@ fi
|
||||||
# values
|
# values
|
||||||
TEMP_MILLI_C=$(cat /sys/class/thermal/thermal_zone0/temp)
|
TEMP_MILLI_C=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||||
|
|
||||||
echo thermal_zone0.value $( echo "scale=3; $TEMP_MILLI_C / 1000" | bc )
|
echo "thermal_zone0.value $(echo "$TEMP_MILLI_C" | awk '{printf("%0.3f", $1 / 1000)}')"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue