Fixes: https://bugs.linaro.org/show_bug.cgi?id=1868

Signed-off-by: Matias Elo <[email protected]>
---
 test/performance/odp_l2fwd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index fb5f656..0844f00 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -382,10 +382,10 @@ static int print_speed_stats(int num_workers, stats_t 
**thr_stats,
        int stats_enabled = 1;
        int loop_forever = (duration == 0);
 
-       if (timeout <= 0)
+       if (timeout <= 0) {
                stats_enabled = 0;
                timeout = 1;
-
+       }
        /* Wait for all threads to be ready*/
        odp_barrier_wait(&barrier);
 
-- 
1.9.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to