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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user