diff --git a/inc/status.inc b/inc/status.inc index d124e406..52b23c27 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -838,7 +838,7 @@ STATUS_SCANTIMES(){ fi if [ ${scanrun} -eq 1 ]; then - if [ ${scantime} -le 90 ]; then + if [ ${scantime} -lt 60 ]; then scantimes_repl=$(bc <<< "scale=2; ${scantimes_repl}+${scantime}") ((scansfound_repl++)) else @@ -846,7 +846,7 @@ STATUS_SCANTIMES(){ ((scansfound_repl_xtr++)) fi else - if [ ${scantime} -le 90 ]; then + if [ ${scantime} -lt 60 ]; then scantimes_norm=$(bc <<< "scale=2; ${scantimes_norm}+${scantime}") ((scansfound_norm++)) else @@ -935,11 +935,8 @@ STATUS_SCANTIMES(){ scantime=$(echo "${scan}" | cut -d '~' -f 2) scanrun=$(echo "${scan}" | cut -d '~' -f 3) echo -en "${idsCL[White]} ${scandate} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) " - if [ ${scanrun} -eq 1 ]; then - echo -n "<-- Replication Run" - else - echo -n - fi + [ ${scanrun} -eq 1 ] && echo -n "<-- Replication Run " + [ ${scantime} -ge 60 ] && echo -n "<-- Long Run" echo -e "${idsCL[Default]}" done fi