#627 optimized fahrenheit conversion

This commit is contained in:
Christian Rotzoll 2019-06-12 14:33:10 +02:00
parent ab7a940d12
commit d9c0d0997a

View File

@ -55,7 +55,7 @@ if [ -d "/sys/class/thermal/thermal_zone0/" ]; then
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
fi
tempC=$((cpu/1000))
tempF=$(((((cpu / 1000) * 18 + 320) + 5) / 10))
tempF=$(((tempC * 18 + 325) / 10))
# get memory
ram_avail=$(free -m | grep Mem | awk '{ print $7 }')