mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
#627 added new Fahrenheit Calculations
This commit is contained in:
@@ -55,7 +55,7 @@ if [ -d "/sys/class/thermal/thermal_zone0/" ]; then
|
|||||||
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
|
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||||
fi
|
fi
|
||||||
tempC=$((cpu/1000))
|
tempC=$((cpu/1000))
|
||||||
tempF=$(((cpu/1000) * (9/5) + 32))
|
tempF=$((((cpu / 1000) * 18 + 320) / 10))
|
||||||
|
|
||||||
# get memory
|
# get memory
|
||||||
ram_avail=$(free -m | grep Mem | awk '{ print $7 }')
|
ram_avail=$(free -m | grep Mem | awk '{ print $7 }')
|
||||||
|
Reference in New Issue
Block a user