aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-12-19 12:28:46 +0100
committerOle Trøan <otroan@employees.org>2018-12-19 14:25:59 +0000
commitc6cb18b29d50d522d54b04587b13becc8363ec5c (patch)
tree6693fb6559daa2931034715b45b8b330d822d893
parente96bf63bd0dc483179dc595b65ebd8bf2b310b8b (diff)
Stats: Updated wrong slot on new vector
Change-Id: Ibf6008fd4e780a8c6fa676c7f7ba2f1cd98e72a9 Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/vpp/stats/stat_segment.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vpp/stats/stat_segment.c b/src/vpp/stats/stat_segment.c
index 9b6b37b934f..793936bf08f 100644
--- a/src/vpp/stats/stat_segment.c
+++ b/src/vpp/stats/stat_segment.c
@@ -115,7 +115,6 @@ vlib_stats_pop_heap (void *cm_arg, void *oldheap, stat_directory_type_t type)
strncpy (e.name, stat_segment_name, 128 - 1);
e.type = type;
vec_add1 (sm->directory_vector, e);
- vector_index++;
}
stat_segment_directory_entry_t *ep = &sm->directory_vector[vector_index];