AverageCounter
measures historical packet count and rate
SYNOPSIS§
AverageCounter([IGNORE])
DESCRIPTION§
Passes packets unchanged from its input to its output, maintaining statistics information about packet count and packet rate using a strict average.
The rate covers only the time between the first and most recent packets.
IGNORE, by default, is 0. If it is greater than 0, the first IGNORE number of seconds are ignored in the count.
ELEMENT HANDLERS§
- count (read-only) — Returns the number of packets that have passed through since the last reset.
- byte_count (read-only) — Returns the number of packets that have passed through since the last reset.
- rate (read-only) — Returns packet arrival rate.
- byte_rate (read-only) — Returns packet arrival rate in bytes per second. (Beware overflow!)
- reset (write-only) — Resets the count and rate to zero.
SEE ALSO§
AverageCounterMP, AverageCounterIMP
Generated by click-elem2man from ../elements/standard/averagecounter.hh:9 on 2026/11/02.