MINOR: freq_ctr: add the missing next_event_delay_period()
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 21:36:07 +0000 (23:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Apr 2021 09:11:03 +0000 (11:11 +0200)
commitd209c87142c96b78ad478339408294d37c326422
treefcb8dc9b1dde5d71e45384d427b3540e33ffd9b0
parent607be24a85f8c21c1d1528727e2e68f96f7d859b
MINOR: freq_ctr: add the missing next_event_delay_period()

There was still no function to compute a wait time for periods, let's
implement it on top of freq_ctr_total() as we'll soon need it for the
per-second one. The divide here is applied on the frequency so that it
will be replaced with a reciprocal multiply when constant.
include/haproxy/freq_ctr.h