stats: off by one error in /sys/node/{calls,clocks,...}

Fixes: 58492a8372
Change-Id: Ia2eeebc2488b57e57f8d5e52f9948d1cced7b6fc
Type: fix
Ticket: VPP-1698
Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
Ole Troan
2019-06-18 13:56:05 +02:00
committed by Neale Ranns
parent 92e3082199
commit 39baa32186
+4 -4
View File
@@ -449,13 +449,13 @@ update_node_counters (stat_segment_main_t * sm)
vlib_stat_segment_lock ();
stat_validate_counter_vector (&sm->directory_vector
[STAT_COUNTER_NODE_CLOCKS], l);
[STAT_COUNTER_NODE_CLOCKS], l - 1);
stat_validate_counter_vector (&sm->directory_vector
[STAT_COUNTER_NODE_VECTORS], l);
[STAT_COUNTER_NODE_VECTORS], l - 1);
stat_validate_counter_vector (&sm->directory_vector
[STAT_COUNTER_NODE_CALLS], l);
[STAT_COUNTER_NODE_CALLS], l - 1);
stat_validate_counter_vector (&sm->directory_vector
[STAT_COUNTER_NODE_SUSPENDS], l);
[STAT_COUNTER_NODE_SUSPENDS], l - 1);
vec_validate (sm->nodes, l - 1);
stat_segment_directory_entry_t *ep;