diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-12 18:47:09 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-28 23:51:24 +0100 |
commit | b27b352e937dd0760da1e7fb05f9207be05702b8 (patch) | |
tree | df0a1dc555ee1ada807e51260de918dcf6f53370 /src/gb/common_vty.c | |
parent | 0a1400fc8311268d0a66bb20e0620e546e8d11c8 (diff) |
stats: Use a global index for stat item values
Currently each stat item has a separate index value which basically
counts each single value added to the item and which can be used by
a reporter to get all new values that have not been reported yet.
The drawback is, that such an index must be stored for each stat
item.
This commit introduces a global index which is incremented for each
new stat item value. This index is then stored together with the item
value. So a single stored index per reporter is sufficient to make
sure that only new values are reported.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gb/common_vty.c')
0 files changed, 0 insertions, 0 deletions