app/eventdev: fix divide by zero
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Thu, 21 Nov 2019 19:22:38 +0000 (00:52 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 26 Nov 2019 06:49:31 +0000 (07:49 +0100)
commit93b7794b83524b322d03634969f77d767dec13f1
treeb444502289bcc40165b0d34cfc1ef8b586af3e40
parent997d5d0d0eaf0df884ffe86b4a5b9aad8cce790b
app/eventdev: fix divide by zero

Fix possible divide by zero condition when calculating percentages.

Coverity issue: 277205
Coverity issue: 277234
Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a producer")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
app/test-eventdev/test_perf_common.c