#627 added new Fahrenheit Calculations

This commit is contained in:
Christian Rotzoll
2019-06-05 11:32:30 +02:00
parent ab087f3c02
commit e04042ec38

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) * (9/5) + 32))
tempF=$((((cpu / 1000) * 18 + 320) / 10))
# get memory
ram_avail=$(free -m | grep Mem | awk '{ print $7 }')