Update status.inc
This commit is contained in:
@@ -819,7 +819,7 @@ STATUS_SCANTIMES(){
|
||||
echo -en "${idsCL[Yellow]}Pulling data and calculating average scan times for the last '${LAST}' scans ... "
|
||||
|
||||
lastscantime=$(tail -n 1 ${NM_LOGFOLDER}/status-check.scantimes)
|
||||
lastscantime=${lastscantime#*~}
|
||||
lastscantime=$(echo "${lastscantime}" | cut -d '~' -f 2)
|
||||
scantimes=$(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes)
|
||||
longest_scantime=0
|
||||
IFS=$'\n'
|
||||
@@ -832,7 +832,10 @@ STATUS_SCANTIMES(){
|
||||
for scan in "${scantimes[@]}"; do
|
||||
scantime=$(echo "${scan}" | cut -d '~' -f 2)
|
||||
scanrun=$(echo "${scan}" | cut -d '~' -f 3)
|
||||
[ ${scantime} -gt ${longest_scantime} ] && longest_scantime=${scantime}
|
||||
if [ ${scantime} -gt ${longest_scantime} ]; then
|
||||
longest_scantime=${scantime}
|
||||
longest_scandate=$(echo "${scan}" | cut -d '~' -f 1)
|
||||
fi
|
||||
|
||||
if [ ${scanrun} -eq 1 ]; then
|
||||
if [ ${scantime} -le 90 ]; then
|
||||
@@ -899,7 +902,8 @@ STATUS_SCANTIMES(){
|
||||
echo -e "${idsCL[Cyan]} - Normal `IDS_NUMBER_FORMAT ${scansfound_repl}` ${idsCL[Cyan]}(${average_repl}s)${spcARD}${idsCL[LightCyan]}${average_repl_disp}${idsCL[Default]}"
|
||||
echo -e "${idsCL[Cyan]} - Long `IDS_NUMBER_FORMAT ${scansfound_repl_xtr}` ${idsCL[Cyan]}(${average_repl_xtr}s)${spcARXD}${idsCL[LightCyan]}${average_repl_xtr_disp}${idsCL[Default]}"
|
||||
echo
|
||||
echo -e "${idsCL[LightCyan]}Longest scan from above : ${idsCL[Green]}(${longest_scantime}s) ${idsCL[LightGreen]}${longest_scantime_disp}${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Longest Scan Time : ${idsCL[Green]}(${longest_scantime}s) ${idsCL[LightGreen]}${longest_scantime_disp}${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Longest Scan Date : ${idsCL[LightGreen]}${longest_scandate}${idsCL[Default]}"
|
||||
echo
|
||||
echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[Green]}(${lastscantime}s) ${idsCL[LightGreen]}${lastscantime_disp}${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Last Scan Check : ${idsCL[LightGreen]}${last_scancheck}${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user