From 8afd18ba313d20207232d254608df277175c8cb3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 18:52:08 -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 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]}"