Skip to content

Commit

Permalink
Flush after dumping each line, for piped usage
Browse files Browse the repository at this point in the history
  • Loading branch information
clbr committed Oct 22, 2013
1 parent 24c91d8 commit 28c251b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dump.c
Expand Up @@ -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;
Expand Down

0 comments on commit 28c251b

Please sign in to comment.