summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-28 00:33:13 +0100
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:50:28 +0800
commit453dfa41604b141f1bd22a134a3f17fcb5396a27 (patch)
treec988a6a7aba4e96937c0c1717fbd48710fc513e6
parentb89a3f120437404454daf6d89e517618b3cf5f8c (diff)
downloaddpdk-stable-453dfa41604b141f1bd22a134a3f17fcb5396a27.zip
dpdk-stable-453dfa41604b141f1bd22a134a3f17fcb5396a27.tar.gz
dpdk-stable-453dfa41604b141f1bd22a134a3f17fcb5396a27.tar.xz
app/crypto-perf: fix CSV output
[ upstream commit 49ff67d0d90f411713e81ef12ca8720a1974ecb6 ] When using CSV, the output of the throughput performance numbers was not correct, representing decimal numbers incorrectly. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--app/test-crypto-perf/cperf_test_throughput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/test-crypto-perf/cperf_test_throughput.c b/app/test-crypto-perf/cperf_test_throughput.c
index be683cd..73cee65 100644
--- a/app/test-crypto-perf/cperf_test_throughput.c
+++ b/app/test-crypto-perf/cperf_test_throughput.c
@@ -471,14 +471,14 @@ cperf_throughput_test_runner(void *test_ctx)
cycles_per_packet);
} else {
if (!only_once)
- printf("# lcore id, Buffer Size(B),"
+ printf("#lcore id,Buffer Size(B),"
"Burst Size,Enqueued,Dequeued,Failed Enq,"
"Failed Deq,Ops(Millions),Throughput(Gbps),"
"Cycles/Buf\n\n");
only_once = 1;
- printf("%10u;%10u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";"
- "%.f3;%.f3;%.f3\n",
+ printf("%u;%u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";"
+ "%.3f;%.3f;%.3f\n",
ctx->lcore_id,
ctx->options->test_buffer_size,
test_burst_size,