From: Bao-Long Tran Date: Wed, 31 Jan 2018 08:48:16 +0000 (+0700) Subject: examples/ip_pipeline: fix timer period unit X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=07b7b0b5a922a44c24252cb62e4ebba3b8774674;p=dpdk.git 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 --- 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; } }