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
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