commit | 2970b0bedf81012089c111ccd8b04ca467120ec8 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jun 20 07:15:43 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Aug 10 14:01:09 2010 +0200 |
tree | 50663aadebf678a744033f6fd456450e69469c59 | |
parent | f0d9eecc52fe3ec980467bf421f2f46c77209450 [diff] |
[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.