mirror of https://gerrit.osmocom.org/libosmocore
stats: Add TODO comment to rate_ctr
Currently the counters are scanned twice, once for interval computation and once for reporting. This adds a reminder to move the interval computation code to a special stats reporter which just shall update the fields. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
f13de868be
commit
ee702cd590
|
@ -92,6 +92,9 @@ int64_t rate_ctr_difference(struct rate_ctr *ctr)
|
|||
return result;
|
||||
}
|
||||
|
||||
/* TODO: support update intervals > 1s */
|
||||
/* TODO: implement this as a special stats reporter */
|
||||
|
||||
static void interval_expired(struct rate_ctr *ctr, enum rate_ctr_intv intv)
|
||||
{
|
||||
/* calculate rate over last interval */
|
||||
|
|
Loading…
Reference in New Issue