nextDelaySecs
fun nextDelaySecs(fails: Int, backoffRatio: Int = DEFAULT_BACKOFF_RATIO, retryIntervalSecs: Int = 0): Long
The seconds to wait before the next announce after fails consecutive failures, porting libtorrent's max(retry_interval, min(tracker_retry_delay_max, tracker_retry_delay_min + fails² * tracker_retry_delay_min * backoff_ratio / 100)).
With the default backoffRatio of 250 the sequence is 17, 55, 117, 205, ... seconds (capped at one hour), exactly libtorrent's curve. retryIntervalSecs is the lower bound libtorrent's retry_interval argument imposes (0 = none).
Parameters
fails
consecutive failures so far (>= 1 on a real failure; clamped to >= 0).