Update temp.inc.sh

This commit is contained in:
2023-12-22 22:40:20 -06:00
parent 99af469cea
commit 92acde6599

View File

@@ -648,7 +648,8 @@ SERVERROOM_TEMP_DIFFERENCE(){
for tempdiff in "${tempdiffs[@]}"; do
[[ "${tempdiff}" = *"~"* ]] && tempdiff=${tempdiff#*~}
if [ $(bc -l <<< "${tempdiff} <= 15") -eq 1 ]; then
[ $(bc -l <<< "${tempdiff} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
(( $(bc <<<"${tempdiff} < 0") )) && tempdiff_tmp=`echo "scale=2; ${tempdiff} * -1" | bc` || tempdiff_tmp=${tempdiff}
[ $(bc -l <<< "${tempdiff_tmp} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
tempdiff_total=$(bc <<< "scale=2; ${tempdiff_total}+${tempdiff}")
((scansfound++))
else