diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-14 13:04:38 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-14 20:30:06 +0000 |
commit | 58fd481d73dce9c276facb42b9a9c3488c25417d (patch) | |
tree | f299759229f606fdf83722c6682665e06e286fad /src/vlib/stats/provider_mem.c | |
parent | 92991e5c690e8ad55f9cf0fdb81c26c1d1143b7d (diff) |
stats: refactor vlib counters
Change-Id: I09d2da73eff42c52ba1373acc99ff28f283a6725
Type: improvement
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/stats/provider_mem.c')
-rw-r--r-- | src/vlib/stats/provider_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/stats/provider_mem.c b/src/vlib/stats/provider_mem.c index d52ea4aa0e5..1f6d646011a 100644 --- a/src/vlib/stats/provider_mem.c +++ b/src/vlib/stats/provider_mem.c @@ -55,7 +55,7 @@ vlib_stats_register_mem_heap (clib_mem_heap_t *heap) vec_add1 (memory_heaps_vec, heap); r.entry_index = idx = vlib_stats_add_counter_vector ("/mem/%s", heap->name); - vlib_stats_validate_counter_vector (idx, STAT_MEM_RELEASABLE); + vlib_stats_validate (idx, 0, STAT_MEM_RELEASABLE); /* Create symlink */ vlib_stats_add_symlink (idx, STAT_MEM_TOTAL, "/mem/%s/used", heap->name); |