X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-eventdev%2Ftest_perf_common.c;h=7b0929941050d3c2a986c052419405faad95c152;hb=aa96bcbdae072b34403872192306c00a77409ea5;hp=a5b768c68dacdd1e3b698d0af5c1a1d86a45c806;hpb=3abcd29f2de0e75e4c4fc524f7bb3cd709a68314;p=dpdk.git diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index a5b768c68d..7b09299410 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -203,7 +203,7 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt, perf_cycles = new_cycles; total_mpps += mpps; ++samples; - if (opt->fwd_latency) { + if (opt->fwd_latency && pkts > 0) { printf(CLGRN"\r%.3f mpps avg %.3f mpps [avg fwd latency %.3f us] "CLNRM, mpps, total_mpps/samples, (float)(latency/pkts)/freq_mhz);