app/crypto-perf: fix CSV format
authorAnkur Dwivedi <adwivedi@marvell.com>
Wed, 29 May 2019 06:20:58 +0000 (11:50 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 12:52:25 +0000 (14:52 +0200)
commitb29185bcbbf313c4503991358c646a5dad77400e
tree87f95e318bac84eed83813b440653f3b1e1d81ed
parent22606a96e9d8b1a0678cf812cbc7310963721125
app/crypto-perf: fix CSV format

The format for printing float is incorrect for the following fields
in pmd-cyclecount test: Cycles/Op,Cycles/Enq,Cycles/Deq.

Currently, the format is %.f3. This format will round off the number to
the nearest integer and append a 3 after that.

This patch changes the format to %.3f. This will print the number as a
floating point with a precision of 3 fractional digits.

Fixes: 96dfeb609be1 ("app/crypto-perf: add new PMD benchmarking mode")
Cc: stable@dpdk.org
Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
app/test-crypto-perf/cperf_test_pmd_cyclecount.c