Sort the CPU temperatures for the tooltip.

This commit is contained in:
Tom Alexander 2022-11-25 19:07:10 -05:00
parent 5ea7ef1840
commit b1b2972997
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -8,7 +8,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SLEEP_INTERVAL=${SLEEP_INTERVAL:-30}
while true; do
current_cpu_temps=$(sysctl 'dev.cpu' | grep -E 'dev\.cpu\.[0-9]+\.temperature')
current_cpu_temps=$(sysctl 'dev.cpu' | grep -E 'dev\.cpu\.[0-9]+\.temperature' | sort)
sum_temperature=0
num_temperature=0
max_temperature=0