app/compress-perf: fix floating point exception
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Tue, 6 Aug 2019 10:37:38 +0000 (12:37 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit2097255731d5d3724063e9acf18b23bcbe4b7bac
tree84c67ed5d3b9fa9186f03558f2845074dba2c5d0
parentc591df32ad8e9beb59c5970a893c20b7574c4c87
app/compress-perf: fix floating point exception

This patch fixes the floating point exception that happened
when the number of cores to be used during the benchmark
was zero. After the fix such situation is detected, the error
message is printed and the benchmark application exits.

Fixes: 424dd6c8c1a8 ("app/compress-perf: add weak functions for multicore test")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Artur Trybula <arturx.trybula@intel.com>
app/test-compress-perf/main.c