From 07b7b0b5a922a44c24252cb62e4ebba3b8774674 Mon Sep 17 00:00:00 2001 From: Bao-Long Tran Date: Wed, 31 Jan 2018 15:48:16 +0700 Subject: [PATCH] examples/ip_pipeline: fix timer period unit The timer_period option specified by users via config file should have unit of 1 millisecond. However timer_period is internally converted to unit of 10 millisecond. Fixes: 4e14069328fc ("examples/ip_pipeline: measure CPU utilization") Cc: stable@dpdk.org Signed-off-by: Bao-Long Tran Reviewed-by: Jasvinder Singh --- examples/ip_pipeline/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c index 55d246fabe..bb07efa135 100644 --- a/examples/ip_pipeline/init.c +++ b/examples/ip_pipeline/init.c @@ -1704,7 +1704,7 @@ app_init_pipelines(struct app_params *app) data->ptype = ptype; data->timer_period = (rte_get_tsc_hz() * - params->timer_period) / 100; + params->timer_period) / 1000; } } -- 2.20.1