commit | 607be24a85f8c21c1d1528727e2e68f96f7d859b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Apr 11 10:42:28 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Apr 11 11:11:03 2021 +0200 |
tree | b2ad20fd79bdb96759d5f9b2cb4d36d715da1109 | |
parent | a7a31b26023a428e50cf348635f08c0f7ff50d8b [diff] |
MEDIUM: freq_ctr: reimplement freq_ctr_remain_period() from freq_ctr_total() Now the function becomes an inline one and only contains a divide and a max. The divide will automatically go away with constant periods.