]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: freq-ctr: Don't compute overshoot value for empty counters
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Dec 2022 09:38:01 +0000 (10:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Dec 2022 09:44:17 +0000 (10:44 +0100)
commit427293420fe5358539a395a2a843c8707582871d
tree4397428cb36ed560366fc229e9bb15b097914507
parent04007cb08d38b0761b54b533555270492be44bdd
BUG/MEDIUM: freq-ctr: Don't compute overshoot value for empty counters

The function computing the excess of events of a frequency counter over the
current period for a target frequency must handle empty counters (no event
and no start date). In this case, no excess must be reported.

Because of this bug, long pauses may be experienced on the bandwith
limitation filter.

This patch must be backported to 2.7.
src/freq_ctr.c