From 8e084175383aaf49feb2adf3d2a3d36bfe171227 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 30 Jan 2024 21:34:03 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index d9e87d73..9556b0a6 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -130,14 +130,12 @@ CHECKTEMP(){ [ "${avgdays}" != "noavg" ] && echo -en "\r\033[K" echo -e "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: ${reading}" if [ "${temptype}" == "fans" ]; then - last_check=$(SHOW_TIME $(tail -n 1 ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}) s) MSG=" Last checked" c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -e "${MSG}${spc}: ${idsCL[White]}${last_check}${idsCL[Default]}" - last_set=$(SHOW_TIME $(tail -n 1 ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set) s) + echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR} "+%m-%d-%Y %H:%M:%S")${idsCL[Default]}" MSG=" Last set" c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -e "${MSG}${spc}: ${idsCL[White]}${last_set}${idsCL[Default]}" + echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m-%d-%Y %H:%M:%S")${idsCL[Default]}" fi fi ((t++))