Update status.inc
This commit is contained in:
@@ -1198,10 +1198,10 @@ STATUS_SCANTIMES(){
|
||||
gofor=0
|
||||
fi
|
||||
else
|
||||
gofor=1
|
||||
gofor=2
|
||||
echo
|
||||
fi
|
||||
if [ ${gofor} -eq 1 ]; then
|
||||
if [ ${gofor} -gt 0 ]; then
|
||||
lastscansnum=${scansfound_total}
|
||||
last_scantimes=$(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)
|
||||
IFS=$'\n'
|
||||
@@ -1212,7 +1212,7 @@ STATUS_SCANTIMES(){
|
||||
scandate=$(echo "${scan}" | cut -d '~' -f 1)
|
||||
scantime=$(echo "${scan}" | cut -d '~' -f 2)
|
||||
scanrun=$(echo "${scan}" | cut -d '~' -f 3)
|
||||
if [ "${choice^^}" == "A" ] || ([ "${choice^^}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice^^}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice^^}" == "C" ] && [ ${scanrun} -eq 2 ]) || ([ "${choice^^}" == "L" ] && ([ ${scanrun} -eq 0 ] && [ ${scantime} -gt 60 ] || [ ${scanrun} -gt 0 ] && [ ${scantime} -gt 70 ])); then
|
||||
if ${gofor} -eq 2 ] || [ "${choice^^}" == "A" ] || ([ "${choice^^}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice^^}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice^^}" == "C" ] && [ ${scanrun} -eq 2 ]) || ([ "${choice^^}" == "L" ] && ([ ${scanrun} -eq 0 ] && [ ${scantime} -gt 60 ] || [ ${scanrun} -gt 0 ] && [ ${scantime} -gt 70 ])); then
|
||||
echo -en "${idsCL[White]} ${scandate} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) "
|
||||
[ ${scanrun} -eq 1 ] && echo -en "${idsCL[LightCyan]}<-- Replication Run "
|
||||
[ ${scanrun} -eq 2 ] && echo -en "${idsCL[Blue]}<-- Replication & Clean Run "
|
||||
|
||||
Reference in New Issue
Block a user