Update status.inc

This commit is contained in:
2023-12-03 22:43:47 -06:00
parent 2f4e2ccffe
commit e343526124

View File

@@ -775,7 +775,7 @@ STATUS_SCANTIMES(){
scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes)) scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes))
scantimes_total=0 scantimes_total=0
for scantime in "${scantimes[@]}"; do for scantime in "${scantimes[@]}"; do
scantimes_total=((${scantimes_total}+${scantime})) scantimes_total=$(bc <<< "scale=1; ${scantimes_total}+${scantime}")
done done
average=$(bc <<< "scale=1; ${scantimes_total}/${LAST}") average=$(bc <<< "scale=1; ${scantimes_total}/${LAST}")