- 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
+ rnd_cuttoff=$(($val % $DELTA_WAIT_SUCCESS))
+ age_after_min=$((delta - MIN_WAIT_SUCCESS))
+ if [ "$age_after_min" -lt "$rnd_cuttoff" ]; then