]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] freq_ctr: add new types and functions for periods different from 1s
authorWilly Tarreau <w@1wt.eu>
Sun, 20 Jun 2010 05:15:43 +0000 (07:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 12:01:09 +0000 (14:01 +0200)
commit2970b0bedf81012089c111ccd8b04ca467120ec8
tree50663aadebf678a744033f6fd456450e69469c59
parentf0d9eecc52fe3ec980467bf421f2f46c77209450
[MINOR] freq_ctr: add new types and functions for periods different from 1s

Some freq counters will have to work on periods different from 1 second.
The original freq counters rely on the period to be exactly one second.
The new ones (freq_ctr_period) let the user define the period in ticks,
and all computations are operated over that period. When reading a value,
it indicates the amount of events over that period too.
include/proto/freq_ctr.h
include/types/freq_ctr.h
src/freq_ctr.c