examples: add flush after stats printing
[dpdk.git] / examples / l2fwd-jobstats / main.c
index 396fd89..47a3b09 100644 (file)
@@ -329,6 +329,9 @@ show_stats_cb(__rte_unused void *param)
        }
 
        printf("\n====================================================\n");
+
+       fflush(stdout);
+
        rte_eal_alarm_set(timer_period * US_PER_S, show_stats_cb, NULL);
 }