Skip to content

Commit

Permalink
Merge branch 'branches/rudder/6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Apr 8, 2020
2 parents 506bd79 + a4f5fbc commit bbfbef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/commands/agent-check
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if [ ! -t 0 ]; then
if [ "$SLEEP" = true ]; then
# we half the interval in the hope of not running at the same time as the agent
MAX_SLEEP=`expr ${AGENT_RUN_INTERVAL} \* 30` # in second
SLEEP_DURATION=$(awk -v m="$MAX_SLEEP" 'BEGIN{print int(rand()*m)}')
SLEEP_DURATION=$(awk -v m="$MAX_SLEEP" 'BEGIN{srand(); print int(rand()*m)}')
sleep $SLEEP_DURATION
fi
fi
Expand Down

0 comments on commit bbfbef2

Please sign in to comment.