Bit_Rate measurement

Ruetee Chitpranee <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <CABG77OebNb3TzNnOFMPFcgWJk_dO_Dt+UfahnZfxR+1T2ZxZGQ@mail.gmail.com>
Hi,

I'm trying to measure bit rate of a source by using* Counter *element's
handler but it's not working (return 0).
Can anybody explain me why? and what should be the solution? Thank you in
advance...

C:: Counter

Source -> C -> Discard;

DriverManager(wait 3s, printn "Bit Rate: ", save C.bit_rate -, stop)

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 bytes
that have passed through since the last reset.*rate (read-only)*Returns the
recent arrival rate, measured by exponential weighted moving average, in
packets per second.*bit_rate (read-only)*Returns the recent arrival rate,
measured by exponential weighted moving average, in bits per second.

-- 
Ruetee C.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.