Update status.inc

This commit is contained in:
2023-12-06 23:15:14 -06:00
parent fac177b8f3
commit cf0b257a7d

View File

@@ -822,11 +822,14 @@ STATUS_SCANTIMES(){
if [ "${choice^^}" == "Y" ]; then if [ "${choice^^}" == "Y" ]; then
echo -en "\r\033[K" echo -en "\r\033[K"
lastscansnum=${scansfound} lastscansnum=${scansfound}
last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)) last_scantimes=$(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)
IFS=$'\n'
read -rd '' -a last_scantimes <<<"${last_scantimes}"
unset IFS
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}"
for scantime in "${last_scantimes[@]}"; do for scantime in "${last_scantimes[@]}"; do
if [[ "${scantime}" = *"~"* ]]; then if [[ "${scantime}" = *"~"* ]]; then
dt=${scantime%~*} dt="${scantime%~*}"
scantime=${scantime#*~} scantime=${scantime#*~}
else else
dt=" " dt=" "