Update status.inc
This commit is contained in:
@@ -785,8 +785,7 @@ STATUS_SCANTIMES(){
|
|||||||
|
|
||||||
echo -en "${idsCL[Yellow]}Pulling data and calculating average scan times for the last '${LAST}' scans ... "
|
echo -en "${idsCL[Yellow]}Pulling data and calculating average scan times for the last '${LAST}' scans ... "
|
||||||
|
|
||||||
lastscansnum=${LAST}
|
|
||||||
last_scantimes=($(tail -n ${lastscansnum} ${NM_LOGFOLDER}/status-check.scantimes))
|
|
||||||
lastscantime=$(tail -n 1 ${NM_LOGFOLDER}/status-check.scantimes)
|
lastscantime=$(tail -n 1 ${NM_LOGFOLDER}/status-check.scantimes)
|
||||||
|
|
||||||
scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes))
|
scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes))
|
||||||
@@ -801,10 +800,19 @@ STATUS_SCANTIMES(){
|
|||||||
echo -en "\r\033[K"
|
echo -en "\r\033[K"
|
||||||
echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[Green]}$(SHOW_TIME ${average} s) (${average}s)${idsCL[Default]}\n"
|
echo -e "${idsCL[LightCyan]}Average for last '${scansfound}' : ${idsCL[Green]}$(SHOW_TIME ${average} s) (${average}s)${idsCL[Default]}\n"
|
||||||
echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[Green]}$(SHOW_TIME ${lastscantime} s) (${lastscantime}s)${idsCL[Default]}\n"
|
echo -e "${idsCL[LightCyan]}Last Scan Time : ${idsCL[Green]}$(SHOW_TIME ${lastscantime} s) (${lastscantime}s)${idsCL[Default]}\n"
|
||||||
echo -e "${idsCL[LightCyan]}Last ${lastscansnum} Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}"
|
|
||||||
for scantime in "${last_scantimes[@]}"; do
|
echo -en "${idsCL[LightCyan]}List out these scan times? (y/N): ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}"
|
read -n1 choice
|
||||||
done
|
if [ "${choice^^}" == "Y" ]; then
|
||||||
|
echo -en "\r\033[K\033[1A\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
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user