From b7dadcbdec4e047f70bce6608550e804aad58f53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 23:08:55 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index b66be3ed..f04ef076 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -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#*~}