From 92acde6599981cd854f22965f8a69149658511f7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 22 Dec 2023 22:40:20 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 691f1214..ad97b40d 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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