This lowers the sleep time between each try to ping the controller,
while retaining the message output at every 5 seconds.
Change-Id: I7c9cf4ce56f2645b6f26a4307b6df6f7386e1c5a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
echo Timeout Controller DOWN
exit 1
else
echo Timeout Controller DOWN
exit 1
else
- COUNT=$(( ${COUNT} + 5 ))
- sleep 5
- echo waiting ${COUNT} secs...
+ COUNT=$(( ${COUNT} + 1 ))
+ sleep 1
+ if [[ $(($COUNT % 5)) == 0 ]]; then
+ echo already waited ${COUNT} seconds...
+ fi