use bc's round
This commit is contained in:
parent
ce1b6124eb
commit
a7192577e1
@ -3,7 +3,7 @@
|
||||
speed=$(sensors | grep fan1 | cut -d " " -f 9)
|
||||
|
||||
if [ "$speed" != "" ]; then
|
||||
speed_round=$(LANG=C printf "%.1fk\\n" "$(echo "$speed/1000" | bc -l )")
|
||||
speed_round=$(echo "scale=1;$speed/1000" | bc -l )
|
||||
echo "# $speed_round"
|
||||
else
|
||||
echo "#"
|
||||
|
Loading…
x
Reference in New Issue
Block a user