From 28c251bf0498ca6acf6dd47fb2c6bb68f2b51579 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Tue, 22 Oct 2013 16:24:13 +0300 Subject: [PATCH] Flush after dumping each line, for piped usage --- dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dump.c b/dump.c index ca79a73..7cb0a34 100644 --- a/dump.c +++ b/dump.c @@ -115,6 +115,8 @@ void dumpdata(const unsigned int ticks, const char file[], const unsigned int li fprintf(f, "db %.2f%%, ", db); fprintf(f, "cb %.2f%%\n", cb); + fflush(f); + // Did we get a termination signal? if (quit) break;