Update status.inc

This commit is contained in:
2023-12-27 11:00:53 -06:00
parent 58c3f8ed5c
commit 4e1df6c70f

View File

@@ -828,8 +828,10 @@ STATUS_SCANTIMES(){
scantimes_total_norm=0; scansfound_norm=0
scantimes_total_repl=0; scansfound_repl=0
scantimes_total_xtr=0; scansfound_xtr=0
for scantime in "${scantimes[@]}"; do
[[ "${scantime}" = *"~"* ]] && scantime=${scantime#*~}
for scan in "${scantimes[@]}"; do
# [[ "${scantime}" = *"~"* ]] && scantime=${scantime#*~}
scantime=$(echo "${scan}" | cut -d '~' -f 2)
scanrun=$(echo "${scan}" | cut -d '~' -f 3)
[ ${scantime} -gt ${longest_scantime} ] && longest_scantime=${scantime}
if [ ${scantime} -lt 30 ]; then
scantimes_total_norm=$(bc <<< "scale=2; ${scantimes_total_norm}+${scantime}")