From e24c412e1459d5e34553a7672d17409c97781ab8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Dec 2023 22:56:12 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 5701e4da..2561dcae 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -775,13 +775,13 @@ STATUS_SCANTIMES(){ scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes)) scantimes_total=0; scansfound=0 for scantime in "${scantimes[@]}"; do - scantimes_total=$(bc <<< "scale=1; ${scantimes_total}+${scantime}") + scantimes_total=$(bc <<< "scale=2; ${scantimes_total}+${scantime}") ((scansfound++)) done - average=$(bc <<< "scale=1; ${scantimes_total}/${scansfound}") + average=$(bc <<< "scale=2; ${scantimes_total}/${scansfound}") echo -en "\r\033[K" - echo -e "${idsCL[LightCyan]}Average scan time for the last '${scansfound}' scans : ${idsCL[Green]}${average}${idsCL[Default]}\n" + echo -e "${idsCL[LightCyan]}Average scan time for the last '${scansfound}' scans : ${idsCL[Green]}$(SHOW_TIME ${average})${idsCL[Default]}\n" }