From a1f43a5e945c1fa81dedbbf857882bdc7a66f65a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 23 Dec 2024 12:19:40 -0800 Subject: [PATCH] Update runShell.sh --- runShell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runShell.sh b/runShell.sh index 6ae340b..c626bde 100644 --- a/runShell.sh +++ b/runShell.sh @@ -17,7 +17,7 @@ then # temp in fahrenheit tempf=$(echo "scale=2; $temp * 9 / 5 + 32" | bc) else - temp=$(paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp)) + temp=$(paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | grep "temp" | awk '{print $2/1000}' | awk '{s+=$1} END {print s/NR}') tempf=$(echo "scale=2; $temp * 9 / 5 + 32" | bc) fi