commit | ffa55a4e8783419f60932ef2f9e872293cf932b9 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@netfilter.org> | Tue Dec 22 19:07:32 2009 +0100 |
committer | Harald Welte <laforge@netfilter.org> | Tue Dec 22 20:42:40 2009 +0100 |
tree | c615771fe04a89807a012d8e100de53847b70d0f | |
parent | 4983921af1a84ea20c6be7944bf0ff4928578a69 [diff] |
statistics: Introduce 'struct counter' instead of using unsigned long 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.