Update temp.inc.sh
This commit is contained in:
@@ -648,10 +648,16 @@ SERVERROOM_TEMP_DIFFERENCE(){
|
|||||||
for tempdiff in "${tempdiffs[@]}"; do
|
for tempdiff in "${tempdiffs[@]}"; do
|
||||||
[[ "${tempdiff}" = *"~"* ]] && tempdiff=${tempdiff#*~}
|
[[ "${tempdiff}" = *"~"* ]] && tempdiff=${tempdiff#*~}
|
||||||
if [ $(bc -l <<< "${tempdiff} <= 15") -eq 1 ]; then
|
if [ $(bc -l <<< "${tempdiff} <= 15") -eq 1 ]; then
|
||||||
|
|
||||||
|
# (( $(bc <<<"${tempdiff} < 0") )) && tempdiff_tmp1=`echo "scale=2; ${tempdiff} * -1" | bc` || tempdiff_tmp1=${tempdiff}
|
||||||
|
# (( $(bc <<<"${largest_tempdiff} < 0") )) && tempdiff_tmp2=`echo "scale=2; ${largest_tempdiff} * -1" | bc` || tempdiff_tmp2=${largest_tempdiff}
|
||||||
|
# [ $(bc -l <<< "${tempdiff_tmp1} >= ${tempdiff_tmp2}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
||||||
|
|
||||||
(( $(bc <<<"${tempdiff} < 0") )) && tempdiff_tmp1=`echo "scale=2; ${tempdiff} * -1" | bc` || tempdiff_tmp1=${tempdiff}
|
(( $(bc <<<"${tempdiff} < 0") )) && tempdiff_tmp1=`echo "scale=2; ${tempdiff} * -1" | bc` || tempdiff_tmp1=${tempdiff}
|
||||||
(( $(bc <<<"${largest_tempdiff} < 0") )) && tempdiff_tmp2=`echo "scale=2; ${largest_tempdiff} * -1" | bc` || tempdiff_tmp2=${largest_tempdiff}
|
[ $(bc -l <<< "${tempdiff_tmp1} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff_tmp1}
|
||||||
[ $(bc -l <<< "${tempdiff_tmp1} >= ${tempdiff_tmp2}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
|
||||||
# [ $(bc -l <<< "${tempdiff} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
# [ $(bc -l <<< "${tempdiff} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
||||||
|
|
||||||
tempdiff_total=$(bc <<< "scale=2; ${tempdiff_total}+${tempdiff}")
|
tempdiff_total=$(bc <<< "scale=2; ${tempdiff_total}+${tempdiff}")
|
||||||
((scansfound++))
|
((scansfound++))
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user