val=$((16#$val))
valmod=$(($val % $DELTA_WAIT_SUCCESS))
after_min=$((delta - MIN_WAIT_SUCCESS))
- if [ "$after_min" -gt "$valmod" ]; then
- runme=1
- log "Planning to run $host:$port $version/$cluster because random computer says so ($after_min > $valmod)."
- else
+ if [ "$after_min" -lt "$valmod" ]; then
runme=0
- log "Skipping $host:$port $version/$cluster because random computer says wait ($after_min <= $valmod)."
+ log "Skipping $host:$port $version/$cluster because random computer says wait ($after_min < $valmod)."
+ else
+ runme=1
+ log "Planning to run $host:$port $version/$cluster because random computer says so ($after_min >= $valmod)."
fi
fi
fi