From 1ddbc0138b64486b8e51e5e12fcad21fba8b8b68 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 13 Jun 2018 09:26:05 -0400 Subject: Stat segment / client: show run" works now Seems to have minimal-to-zero performance consequences. Data appears accurate: result match the debug CLI output. Checked at low rates, 27 MPPS sprayed across two worker threads. Change-Id: I09ede5150b88a91547feeee448a2854997613004 Signed-off-by: Dave Barach --- src/vlib/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vlib/cli.c') diff --git a/src/vlib/cli.c b/src/vlib/cli.c index f684289ba75..ca8d2abc999 100644 --- a/src/vlib/cli.c +++ b/src/vlib/cli.c @@ -811,7 +811,7 @@ enable_disable_memory_trace (vlib_main_t * vm, while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { - if (!unformat (line_input, "%U", unformat_vlib_enable_disable, &enable)) + if (unformat (line_input, "%U", unformat_vlib_enable_disable, &enable)) ; else if (unformat (line_input, "api-segment")) api_segment = 1; -- cgit 1.2.3-korg