diff --git a/inc/status.inc b/inc/status.inc index e086c887..f174ca4b 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -851,6 +851,17 @@ STATUS_SCANTIMES(){ cw=`expr $(echo "${#average_norm} ${#average_repl} ${#average_xtr} ${#average}" | grep -oE '[0-9]+' | sort -n | tail -n 1) + 20` echo "HERE: ${cw} = ${#average_norm} ${#average_repl} ${#average_xtr} ${#average}" + # average_norm_disp=$(SHOW_TIME ${average_norm} s) + # c=0; spca=''; spc1=`expr ${cw} - ${#average_norm}`; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done + # average_repl_disp=$(SHOW_TIME ${average_repl} s) + # c=0; spcr=''; spc1=`expr ${cw} - ${#average_repl}`; until [ $c = ${spc1} ]; do spcr="${spcr} "; c=`expr $c + 1`; done + # average_xtr_disp=$(SHOW_TIME ${average_xtr} s) + # c=0; spcx=''; spc1=`expr ${cw} - ${#average_xtr}`; until [ $c = ${spc1} ]; do spcx="${spcx} "; c=`expr $c + 1`; done + # average_disp=$(SHOW_TIME ${average} s) + # c=0; spcT=''; spc1=`expr ${cw} - ${#average}`; until [ $c = ${spc1} ]; do spct="${spct} "; c=`expr $c + 1`; done + # lastscantime_disp=$(SHOW_TIME ${lastscantime#*~} s) + # c=0; spcb=''; spc1=`expr ${cw} - ${lastscantime#*~}`; until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done + average_norm_disp=$(SHOW_TIME ${average_norm} s) c=0; spca=''; spc1=`expr ${cw} - ${#average_norm_disp}`; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done average_repl_disp=$(SHOW_TIME ${average_repl} s) @@ -860,7 +871,8 @@ STATUS_SCANTIMES(){ average_disp=$(SHOW_TIME ${average} s) c=0; spcT=''; spc1=`expr ${cw} - ${#average_disp}`; until [ $c = ${spc1} ]; do spct="${spct} "; 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 + c=0; spcb=''; spc1=`expr ${cw} - ${#lastscantime_disp}`; until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done + [ -f ${NM_TMPFOLDER}/.replcheck ] && last_replcheck=$(date -d @$(stat -c %Y ${NM_TMPFOLDER}/.replcheck) "+%Y-%m-%d %H:%M:%S") || last_replcheck="" [ -f ${NM_LOGFOLDER}/status-check.scantimes ] && last_scancheck=$(date -d @$(stat -c %Y ${NM_LOGFOLDER}/status-check.scantimes) "+%Y-%m-%d %H:%M:%S") || last_scancheck=""