Skip to content

Commit 5dc7558

Browse files
norrisjeremyLukas955
authored andcommitted
Viewer output: flush stdout to allow for more timely appearance of records.
1 parent 7acf6ff commit 5dc7558

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/output/viewer/Reader.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
*/
4141

4242
#include <inttypes.h>
43+
#include <stdio.h>
4344
#include <libfds.h>
4445
#include "Reader.h"
4546
#include <ipfixcol2.h>
@@ -75,6 +76,8 @@ read_packet(ipx_msg_ipfix_t *msg, const fds_iemgr_t *iemgr)
7576
for (uint32_t i = 0; i < set_cnt; ++i){
7677
read_set(&sets[i], msg, iemgr, &rec_i);
7778
}
79+
80+
fflush(stdout);
7881
}
7982

8083
void

0 commit comments

Comments
 (0)