libosmocore/tests/stats
Neels Hofmeyr 6a5940740a refactor stat_item: report only changed values
Change the functionality of skipping unchanged values: instead of
looking up whether new values have been set on a stat item, rather
remember the last reported value and skip reporting identical values.

stats_test.c shows that previously, a stat item reported a value of 10
again, even though the previous report had already sent a value of 10.
That's just because the value 10 was explicitly set again, internally.

From a perspective of preserving all data points, it could make sense to
send consecutive identical values. But since we already collapse all
data points per reporting period into a max, that is pointless.

Related: SYS#5542
Change-Id: I8f4cf34dfed17e0879716fa2cbeee137c158978b
2021-09-30 18:33:43 +00:00
..
stats_test.c refactor stat_item: report only changed values 2021-09-30 18:33:43 +00:00
stats_test.err refactor stat_item: report only changed values 2021-09-30 18:33:43 +00:00
stats_test.ok tests/stats: enable logging in test output 2021-03-17 16:39:35 +01:00