use tail instead of bc for div

pull/6047/head
Medya Gh 2019-12-10 15:43:43 -08:00
parent dabf8c1cde
commit b0ba1ff0c6
1 changed files with 4 additions and 1 deletions

View File

@ -280,9 +280,12 @@ else
echo "minikube: FAIL"
fi
## caclucate the time took to finish running e2e binary test.
e2e_end_time="$(date -u +%s)"
elapsed=$(($e2e_end_time-$e2e_start_time))
elapsed=$(bc <<< "scale=2;$elapsed/60")
min=$(($elapsed/60))
sec=$(tail -c 3 <<< $((${elapsed}00/60)))
elapsed=$min.$sec
description="completed with ${status} in ${elapsed} minute(s)."
echo $description