Update status.inc

This commit is contained in:
2023-12-05 22:46:53 -06:00
parent df75dc4846
commit 005c5cfb38

View File

@@ -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"