stats: swap used and total stats
Type: fix reported stats seem to have mixed up used and total counters Signed-off-by: Leland Krych <leland.krych@gmail.com> Change-Id: I221c7b114c0da2ed53171d7f047a4bda07ee6cb2
This commit is contained in:

committed by
Beno�t Ganne

parent
7c3096dac7
commit
082dc14b4a
@ -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;
|
||||
|
Reference in New Issue
Block a user