From a5c681010764e9a7653afbc5406ca35c93d99a1f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 27 Dec 2023 12:05:12 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index ff5ec1b3..3864895d 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -921,16 +921,16 @@ STATUS_SCANTIMES(){ unset IFS echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}------------------------------------------${idsCL[Default]}" for scan in "${last_scantimes[@]}"; do + scandate=$(echo "${scan}" | cut -d '~' -f 1) scantime=$(echo "${scan}" | cut -d '~' -f 2) scanrun=$(echo "${scan}" | cut -d '~' -f 3) - echo -en "${idsCL[White]} ${dt} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) " - if [ ${scantime} -ge 30 ] && [ ${scantime} -le 60 ]; then - echo -e "<-- Replication Run${idsCL[Default]}" - elif [ ${scantime} -gt 60 ]; then - echo -e "${idsCL[LightRed]}<-- Extreme Run${idsCL[Default]}" + echo -en "${idsCL[White]} ${scandate} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) " + if [ ${scanrun} -eq 1]; then + echo "<-- Replication Run" else - echo + echo fi + echo -e "${idsCL[Default]}" done fi fi