diff --git a/inc/status.inc b/inc/status.inc index ffa6bd92..2dc23082 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -806,16 +806,18 @@ STATUS_SCANTIMES(){ echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[Green]}${average_disp}${spca}${idsCL[LightGreen]}(${average}s)${idsCL[Default]}\n" echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[Green]}${lastscantime_disp}${spcb}${idsCL[LightGreen]}(${lastscantime}s) ${idsCL[LightCyan]}- $(date -r ${NM_LOGFOLDER}/status-check.scantimes "+%m-%d-%Y %H:%M")${idsCL[Default]}\n" - echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}" - read -n1 choice - if [ "${choice^^}" == "Y" ]; then - echo -en "\r\033[K" - lastscansnum=${LAST} - last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)) - echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}" - for scantime in "${last_scantimes[@]}"; do - echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}" - done + if [ ${scansfound} -le 500 ]; then + echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}" + read -n1 choice + if [ "${choice^^}" == "Y" ]; then + echo -en "\r\033[K" + lastscansnum=${scansfound} + last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes)) + echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}" + for scantime in "${last_scantimes[@]}"; do + echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}" + done + fi fi echo -e "\n"