From d9c0d0997a34cab562e34e18c3e7da071291b593 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 12 Jun 2019 14:33:10 +0200 Subject: [PATCH] #627 optimized fahrenheit conversion --- home.admin/00infoBlitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index d4ce3e1..60265a0 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -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 }')