Update status.inc
This commit is contained in:
@@ -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]}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 -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]}"
|
if [ ${scansfound} -le 500 ]; then
|
||||||
read -n1 choice
|
echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}"
|
||||||
if [ "${choice^^}" == "Y" ]; then
|
read -n1 choice
|
||||||
echo -en "\r\033[K"
|
if [ "${choice^^}" == "Y" ]; then
|
||||||
lastscansnum=${LAST}
|
echo -en "\r\033[K"
|
||||||
last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes))
|
lastscansnum=${scansfound}
|
||||||
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}"
|
last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes))
|
||||||
for scantime in "${last_scantimes[@]}"; do
|
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}"
|
||||||
echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}"
|
for scantime in "${last_scantimes[@]}"; do
|
||||||
done
|
echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user