HomeClusterLabs Projects

Low: fencer: Fix fence delay range off-by-one

Description

Low: fencer: Fix fence delay range off-by-one

Add 1 to the modulus so that we include the full range of
(delay_max - delay_base), not that it really matters. For example, if
delay_max == 5 and delay_base == 2, then we want to add values in
{0, 1, 2, 3} to delay_base -- not to add values only in {0, 1, 2}.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Thu, Jul 10, 1:42 AM
Parents
rPc5ffaa84b12c: Refactor: fencer: Simplify start_delay calculation for fence command
Branches
Unknown
Tags
Unknown