diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3f340f6d..015357cb 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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]}"