From 1de2d2c20bc0aa107ae683b28eb35359a7f982ea Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Dec 2023 21:44:58 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 10e72467..f92ac1e0 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -794,7 +794,8 @@ STATUS_SCANTIMES(){ scantimes_total=$(bc <<< "scale=2; ${scantimes_total}+${scantime}") ((scansfound++)) done - average=$(bc <<< "scale=0; ${scantimes_total}/${scansfound}") + average=$(bc <<< "scale=2; ${scantimes_total}/${scansfound}") + average=$(echo ${average} | awk '{print int($average+0.5)}') echo -en "\r\033[K"