]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: freq_ctr: add new functions to report float measurements
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 06:12:37 +0000 (08:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 08:48:17 +0000 (10:48 +0200)
commitaa33f20e272c05d5110bcb5ab1b49221724472af
treec2fc5eeae7f57480727eb7f3ce26b345c988b5c6
parentae03d26eeab7443dca21214382efdbd9e360aa0d
MINOR: freq_ctr: add new functions to report float measurements

For stats reporting it can be convenient to report floats at low rates
instead of discrete integers. We do have quite some precision since we
currently divide counters by number of milliseconds, so we can usually
add 3 digits after the decimal point.
include/haproxy/freq_ctr.h