Update status.inc
This commit is contained in:
@@ -775,13 +775,13 @@ STATUS_SCANTIMES(){
|
|||||||
scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes))
|
scantimes=($(tail -n ${LAST} ${NM_LOGFOLDER}/status-check.scantimes))
|
||||||
scantimes_total=0; scansfound=0
|
scantimes_total=0; scansfound=0
|
||||||
for scantime in "${scantimes[@]}"; do
|
for scantime in "${scantimes[@]}"; do
|
||||||
scantimes_total=$(bc <<< "scale=1; ${scantimes_total}+${scantime}")
|
scantimes_total=$(bc <<< "scale=2; ${scantimes_total}+${scantime}")
|
||||||
((scansfound++))
|
((scansfound++))
|
||||||
done
|
done
|
||||||
average=$(bc <<< "scale=1; ${scantimes_total}/${scansfound}")
|
average=$(bc <<< "scale=2; ${scantimes_total}/${scansfound}")
|
||||||
|
|
||||||
echo -en "\r\033[K"
|
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"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user