From: Leland Krych Date: Thu, 26 May 2022 15:37:54 +0000 (-0700) Subject: stats: swap used and total stats X-Git-Tag: v23.02-rc0~203 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=082dc14b4a32e2b04d04c5ef223486d381dda84c;p=vpp.git stats: swap used and total stats Type: fix reported stats seem to have mixed up used and total counters Signed-off-by: Leland Krych Change-Id: I221c7b114c0da2ed53171d7f047a4bda07ee6cb2 --- diff --git a/src/vlib/stats/provider_mem.c b/src/vlib/stats/provider_mem.c index 1f6d646011a..f3a3f5d3ed4 100644 --- a/src/vlib/stats/provider_mem.c +++ b/src/vlib/stats/provider_mem.c @@ -58,8 +58,8 @@ vlib_stats_register_mem_heap (clib_mem_heap_t *heap) vlib_stats_validate (idx, 0, STAT_MEM_RELEASABLE); /* Create symlink */ - vlib_stats_add_symlink (idx, STAT_MEM_TOTAL, "/mem/%s/used", heap->name); - vlib_stats_add_symlink (idx, STAT_MEM_USED, "/mem/%s/total", heap->name); + vlib_stats_add_symlink (idx, STAT_MEM_USED, "/mem/%s/used", heap->name); + vlib_stats_add_symlink (idx, STAT_MEM_TOTAL, "/mem/%s/total", heap->name); vlib_stats_add_symlink (idx, STAT_MEM_FREE, "/mem/%s/free", heap->name); r.private_data = vec_len (memory_heaps_vec) - 1;