From 965e2e94d7f46f2d44b65bef1277315aa9fa811a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 19:10:34 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 5a7df070..21784217 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -793,15 +793,15 @@ STATUS_SCANTIMES(){ done average=$(ROUND_NUMBER $(bc <<< "scale=2; ${scantimes_total}/${scansfound}") 0) - cw=18 + cw=8 average_disp=$(SHOW_TIME ${average} s); c=0; spca=''; spc1=`expr ${cw} - ${#average_disp}` until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done lastscantime_disp=$(SHOW_TIME ${lastscantime} s); c=0; spcb=''; spc1=`expr ${cw} - ${#lastscantime_disp}` until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done echo -en "\r\033[K" - echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[Green]}${average_disp}${spca}${idsCL[LightGreen]}(${average}s)${idsCL[Default]}\n" - echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[Green]}${lastscantime_disp}${spcb}${idsCL[LightGreen]}(${lastscantime}s) ${idsCL[LightCyan]}- $(date -r ${NM_LOGFOLDER}/status-check.scantimes "+%m-%d-%Y %H:%M")${idsCL[Default]}\n" + echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[LightGreen]}(${average}s)${spca}${idsCL[Green]}${average_disp}${idsCL[Default]}\n" + echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[LightGreen]}(${lastscantime}s)${spcb}${idsCL[Green]}${lastscantime_disp} ${idsCL[LightCyan]}- $(date -r ${NM_LOGFOLDER}/status-check.scantimes "+%m-%d-%Y %H:%M")${idsCL[Default]}\n" if [ ${scansfound} -le 500 ]; then echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}"