From ea2635ca1e4c9797b91a40aabee954487cc57289 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Dec 2023 22:35:58 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index b3b16cdf..f14d3dd5 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -796,13 +796,11 @@ STATUS_SCANTIMES(){ done average=$(ROUND_NUMBER $(bc <<< "scale=2; ${scantimes_total}/${scansfound}") 0) - cw=30 - average_disp=$(SHOW_TIME ${average} s); c=0; spca=''; spc1=${cw}-${#average_disp} - echo "HERE1: ${#average_disp}" - # until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done - lastscantime_disp=$(SHOW_TIME ${lastscantime} s); c=0; spcb=''; spc1=${cw}-${#lastscantime_disp} - echo "HERE2: ${#lastscantime_disp}" - # until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done + cw=20 + average_disp=$(SHOW_TIME ${average} s); c=0; spca=''; spc1=((${cw}-${#average_disp})) + until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done + lastscantime_disp=$(SHOW_TIME ${lastscantime} s); c=0; spcb=''; spc1=((${cw}-${#lastscantime_disp})) + until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done echo -en "\r\033[K" echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[Green]}${average_disp}${spca}(${average}s)${idsCL[Default]}\n"