Update status.inc

This commit is contained in:
2023-12-27 12:24:08 -06:00
parent 5f4a0cf4f3
commit e93d906b78

View File

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