Added fflush to JSON output.

This commit is contained in:
Jef Poskanzer 2013-02-07 12:37:10 -08:00
parent b5e0751f59
commit bf501899e7

View File

@ -1820,6 +1820,7 @@ iperf_json_finish(struct iperf_test *test)
return -1;
fputs(str, stdout);
putchar('\n');
fflush(stdout);
free(str);
cJSON_Delete(test->json_top);
test->json_top = test->json_start = test->json_intervals = test->json_end = NULL;