Update status.inc

This commit is contained in:
2024-01-11 14:08:31 -06:00
parent eb07fdd483
commit 00ec37a6a0

View File

@@ -1005,7 +1005,7 @@ STATUS_SCANTIMES(){
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}------------------------------------------${idsCL[Default]}"
for scan in "${last_scantimes[@]}"; do
scanrun=$(echo "${scan}" | cut -d '~' -f 3)
if [ "${choice^^}" == "A" ] || ([ "${choice}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice}" == "C" ] && [ ${scanrun} -eq 2 ]); then
if [ "${choice^^}" == "A" ] || ([ "${choice^^}" == "N" ] && [ ${scanrun} -eq 0 ]) || ([ "${choice^^}" == "R" ] && [ ${scanrun} -eq 1 ]) || ([ "${choice^^}" == "C" ] && [ ${scanrun} -eq 2 ]); then
scandate=$(echo "${scan}" | cut -d '~' -f 1)
scantime=$(echo "${scan}" | cut -d '~' -f 2)
echo -en "${idsCL[White]} ${scandate} (${scantime}s) ${idsCL[Yellow]}$(SHOW_TIME ${scantime} s) "