aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/statistics.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-24counter: create their own talloc context for better readabilityHarald Welte1-1/+3
2009-12-23[statistics] Do the syncing to db from within the bsc_hackHolger Hans Peter Freyther1-19/+2
Change the counters_store_db function to be a generic for_each function taking a function pointer and data. Use that in bsc_hack to store it to the DB. This is removing the DB requirement and will allow to handle the counter values in different ways without making the counter list public. I verified that the syncing is still taking place.
2009-12-23[statistics] Make counter_db_store internalHolger Hans Peter Freyther1-1/+1
Do not expose DB functionality on this level
2009-12-22statistics: Introduce 'struct counter' instead of using unsigned longHarald Welte1-0/+85
This has the advantage that counters can be added all over the code very easily, while having only one routine that stores all of the current counter values to the database. The counters are synced every 60 seconds, providing relatively fine grained statistics about the network usage as time passes by.