diff --git a/inc/status.inc b/inc/status.inc index 43024b86..a8261ca6 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -785,7 +785,7 @@ STATUS_SCANTIMES(){ echo -en "${idsCL[Yellow]}Pulling data and calculating average scan times for the last '${LAST}' scans ... " - lastten_scantimes=($(tail -n 10 ${NM_LOGFOLDER}/status-check.scantimes)) + last_scantimes=($(tail -n 30 ${NM_LOGFOLDER}/status-check.scantimes)) lastscantime=$(tail -n 1 ${NM_LOGFOLDER}/status-check.scantimes) scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes)) @@ -801,7 +801,7 @@ STATUS_SCANTIMES(){ 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 10 Scan Times\n${idsCL[Green]}---------------------------------${idsCL[Default]}" - for scantime in "${lastten_scantimes[@]}"; do + for scantime in "${last_scantimes[@]}"; do echo -e "${idsCL[White]} $(SHOW_TIME ${scantime} s) (${scantime}s)${idsCL[Default]}" done echo -e "\n"