commit | d209c87142c96b78ad478339408294d37c326422 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Apr 10 23:36:07 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Apr 11 11:11:03 2021 +0200 |
tree | fcb8dc9b1dde5d71e45384d427b3540e33ffd9b0 | |
parent | 607be24a85f8c21c1d1528727e2e68f96f7d859b [diff] |
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.