Update status.inc
This commit is contained in:
@@ -793,15 +793,15 @@ STATUS_SCANTIMES(){
|
|||||||
done
|
done
|
||||||
average=$(ROUND_NUMBER $(bc <<< "scale=2; ${scantimes_total}/${scansfound}") 0)
|
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}`
|
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
|
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}`
|
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
|
until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done
|
||||||
|
|
||||||
echo -en "\r\033[K"
|
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]}Average for last '${scansfound}' : ${idsCL[LightGreen]}(${average}s)${spca}${idsCL[Green]}${average_disp}${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]}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
|
if [ ${scansfound} -le 500 ]; then
|
||||||
echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user