Update temp.inc.sh

This commit is contained in:
2023-12-26 18:52:08 -06:00
parent d02453b0b1
commit 8afd18ba31

View File

@@ -21,7 +21,7 @@ CHECKTEMP(){
DIVIDER . yellow 70
for SENSOR in ${PW_SENSOR_ORD[@]}; do
start_sub=`date +%s`; echo "[$(date +'%Y-%m-%d %H:%M:%S')] ${SENSOR}"
if [ "${search}" == "" ] || [[ "${SENSOR,,}" = *"${search,,}"* ]]; then
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "esxi" ] && [ "${temptype}" != "sensors" ]; then
@@ -88,6 +88,7 @@ CHECKTEMP(){
last_sensor=${SENSOR%%-*}
fi
fi
end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo " - done: ${runtime_sub}s"
done
end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}"
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"