[Kamailio-Devel] calculating average statistics
Juha Heinanen
jh at tutpro.com
Wed Aug 27 16:38:04 CEST 2008
Klaus Darilion writes:
> How do you calculate average?
see "running average" on page
Running average
after that i did some tests and found that the method was not useful.
> What about having 4 variables e.g. for DNS response times:
> dns_query_max
> dns_query_min
> dns_query_total (sum of all dns response times)
> dns_query_count
i thought about that too, but because response times need to be shown at
least at ms precision, the counter (unsigned int) would run out on a
busy host (actually i didn't count how fast).
-- juha
More information about the Devel
mailing list