Update status.inc

This commit is contained in:
2023-12-06 23:08:55 -06:00
parent dbff3c4895
commit b7dadcbdec

View File

@@ -794,7 +794,10 @@ STATUS_SCANTIMES(){
echo -en "${idsCL[Yellow]}Pulling data and calculating average scan times for the last '${LAST}' scans ... "
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)
IFS=$'\n'
read -rd '' -a scantimes <<<"${scantimes}"
unset IFS
scantimes_total=0; scansfound=0
for scantime in "${scantimes[@]}"; do
[[ "${scantime}" = *"~"* ]] && scantime=${scantime#*~}