change time calculation to not require bc

bc isn't on all devstack-gate nodes, do math in bash instead of
using bc.

Change-Id: I8fd330ee9b1fe7db33a64488fc17e24bdf291357
This commit is contained in:
Sean Dague
2014-04-23 15:11:24 -04:00
parent 99c3e24bf5
commit 4751cb4570

View File

@@ -261,7 +261,7 @@ else
start=$(date +%s)
sudo -H -u stack stdbuf -oL -eL ./stack.sh > /dev/null
end=$(date +%s)
took=$(echo "(($end - $start) / 60)" | bc )
took=$[($end - $start) / 60]
if [[ "$took" -gt 15 ]]; then
echo "WARNING: devstack run took > 15 minutes, this is a very slow node."
fi