diff --git a/plugins/raspberry-pi/rpi_temp b/plugins/raspberry-pi/rpi_temp index 8eff2283..ffdd803e 100755 --- a/plugins/raspberry-pi/rpi_temp +++ b/plugins/raspberry-pi/rpi_temp @@ -28,6 +28,6 @@ fi # values 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