Update status.inc
This commit is contained in:
@@ -848,17 +848,17 @@ STATUS_SCANTIMES(){
|
|||||||
[ ${scansfound} -eq 0 ] && average=0 || average=$(ROUND_NUMBER $(bc <<< "scale=2; ${scantimes_total}/${scansfound}") 0)
|
[ ${scansfound} -eq 0 ] && average=0 || average=$(ROUND_NUMBER $(bc <<< "scale=2; ${scantimes_total}/${scansfound}") 0)
|
||||||
|
|
||||||
|
|
||||||
cw=14
|
cw=`expr $(echo "${#average_norm} ${#average_repl} ${#average_xtr} ${#average}" | grep -oE '[0-9]+' | sort -n | tail -n 1) + 3`
|
||||||
average_norm_disp=$(SHOW_TIME ${average_norm} s)
|
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
|
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)
|
average_repl_disp=$(SHOW_TIME ${average_repl} s)
|
||||||
c=0; spcr=''; spc1=`expr ${cw} - ${#average_repl_disp}`; until [ $c = ${spc1} ]; do spcr="${spcr} "; c=`expr $c + 1`; done
|
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)
|
average_xtr_disp=$(SHOW_TIME ${average_xtr} s)
|
||||||
c=0; spcx=''; spc1=`expr ${cw} - ${#average_xtr_disp}`; until [ $c = ${spc1} ]; do spcx="${spcx} "; c=`expr $c + 1`; done
|
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)
|
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
|
c=0; spcT=''; spc1=`expr ${cw} - ${#average}`; until [ $c = ${spc1} ]; do spct="${spct} "; c=`expr $c + 1`; done
|
||||||
lastscantime_disp=$(SHOW_TIME ${lastscantime#*~} s)
|
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#*~}`; 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_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=""
|
[ -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=""
|
||||||
|
|||||||
Reference in New Issue
Block a user