Update temp.inc.sh
This commit is contained in:
@@ -653,8 +653,8 @@ SERVERROOM_TEMP_DIFFERENCE(){
|
|||||||
# (( $(bc <<<"${largest_tempdiff} < 0") )) && tempdiff_tmp2=`echo "scale=2; ${largest_tempdiff} * -1" | bc` || tempdiff_tmp2=${largest_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 -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 -l <<< "${tempdiff_tmp1} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff_tmp1}
|
# [ $(bc -l <<< "${tempdiff_tmp1} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff_tmp1}
|
||||||
|
|
||||||
# [ $(bc -l <<< "${tempdiff} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
# [ $(bc -l <<< "${tempdiff} >= ${largest_tempdiff}") -eq 1 ] && largest_tempdiff=${tempdiff}
|
||||||
|
|
||||||
@@ -665,8 +665,7 @@ SERVERROOM_TEMP_DIFFERENCE(){
|
|||||||
((scansfound_large++))
|
((scansfound_large++))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# if [ $(bc -l <<< "${largest_tempdiff} < 1") -eq 1 ]; then [ "${largest_tempdiff}" = "0" ] && largest_tempdiff="0.0" || largest_tempdiff="0${largest_tempdiff}"; fi
|
# largest_tempdiff=`IDS_NUMBER_FORMAT ${largest_tempdiff} 2 yes`
|
||||||
largest_tempdiff=`IDS_NUMBER_FORMAT ${largest_tempdiff} 2 yes`
|
|
||||||
|
|
||||||
[ ${scansfound} -eq 0 ] && average=0 || average=$(bc <<< "scale=2; ${tempdiff_total}/${scansfound}")
|
[ ${scansfound} -eq 0 ] && average=0 || average=$(bc <<< "scale=2; ${tempdiff_total}/${scansfound}")
|
||||||
[ ${scansfound_large} -eq 0 ] && average_large=0 || average_large=$(bc <<< "scale=2; ${tempdiff_large_total}/${scansfound_large}")
|
[ ${scansfound_large} -eq 0 ] && average_large=0 || average_large=$(bc <<< "scale=2; ${tempdiff_large_total}/${scansfound_large}")
|
||||||
@@ -682,8 +681,8 @@ SERVERROOM_TEMP_DIFFERENCE(){
|
|||||||
DIVIDER . lightCyan 60
|
DIVIDER . lightCyan 60
|
||||||
echo -e "${idsCL[Cyan]} - Large runs `IDS_NUMBER_FORMAT ${scansfound_large}` ${idsCL[LightCyan]}${average_large}'F${idsCL[Default]}"
|
echo -e "${idsCL[Cyan]} - Large runs `IDS_NUMBER_FORMAT ${scansfound_large}` ${idsCL[LightCyan]}${average_large}'F${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}Largest Temp Difference : ${idsCL[LightGreen]}${largest_tempdiff}'F${idsCL[Default]}"
|
# echo -e "${idsCL[LightCyan]}Largest Temp Difference : ${idsCL[LightGreen]}${largest_tempdiff}'F${idsCL[Default]}"
|
||||||
echo
|
# echo
|
||||||
echo -e "${idsCL[LightCyan]}Last Temp Difference : ${idsCL[LightGreen]}${last_tempdiff}'F${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Last Temp Difference : ${idsCL[LightGreen]}${last_tempdiff}'F${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightCyan]}Last Check : ${idsCL[LightGreen]}${last_scancheck}${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Last Check : ${idsCL[LightGreen]}${last_scancheck}${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user