path: root/src/rate_ctr.c
diff options
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-10 11:38:25 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-26 12:53:12 +0100
commitee702cd590688c1e65296319c5bc4c9cf160ba65 (patch)
treeab092c29c1641dc4a687df3758d11cdb0b5adb73 /src/rate_ctr.c
parentf13de868be052f96325c337f25453f1d97777005 (diff)
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
Diffstat (limited to 'src/rate_ctr.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rate_ctr.c b/src/rate_ctr.c
index 50b3fe74..436deef9 100644
--- a/src/rate_ctr.c
+++ b/src/rate_ctr.c
@@ -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 */