- valmod=$(($val % $DELTA_WAIT_SUCCESS))
- after_min=$((delta - MIN_WAIT_SUCCESS))
- if [ "$after_min" -lt "$valmod" ]; then
+ rnd_cuttoff=$(($val % $DELTA_WAIT_SUCCESS))
+ age_after_min=$((delta - MIN_WAIT_SUCCESS))
+ if [ "$age_after_min" -lt "$rnd_cuttoff" ]; then