Counter element: rate handler

Eddie Kohler kohler at icir.org
Wed Apr 3 14:25:24 EST 2002


Hi Arvind,

Brecht was right. The documentation for Counter was incorrect; the element
only keeps track of packets per second.

You can change that to bytes per second pretty easily, though. Change the
line in counter.cc that reads "_rate.update(1);" into
"_rate.update(p->length());".

Eddie



More information about the click mailing list