Update status.inc
This commit is contained in:
@@ -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}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user