]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cli: adjust the method for feeding frequency counters in tables
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Jul 2013 21:44:30 +0000 (23:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2013 19:17:14 +0000 (21:17 +0200)
commitce54d1b9f2fdd250d864055a9db34f4a6315d37d
tree3cac0cf6fefd761db35ea7011cab7ade780e4970
parent0f791d42b610d20fcc3ee1713d73c9d45e7ad4f6
MEDIUM: cli: adjust the method for feeding frequency counters in tables

Since commit 654694e1, it has been possible to feed some data into
stick tables from the CLI. That commit considered that frequency
counters would only have their previous value set, so that they
progressively fade out. But this does not match any real world
use case in fact. The only reason for feeding a freq counter is
to pass some data learned outside. We certainly don't want to see
such data start to vanish immediately, otherwise it will force the
external scripts to loop very frequently to limit the losses.

So let's set the current value instead in order to guarantee that
the data remains stable over the full period, then starts to fade
out between 1* and 2* the period.
src/dumpstats.c