From 4e1df6c70fa150b44e78d87898600e6f2657a407 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 27 Dec 2023 11:00:53 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 1d36b955..af8703fb 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -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}")