iflush for interval results

In order to keep the same behavior of stdout, iflush the results
to files as they are printed.
This commit is contained in:
Eduardo Abinader 2015-06-06 10:44:32 -04:00
parent 25eb62c7cd
commit 1c89715936

View File

@ -2542,6 +2542,9 @@ print_interval_results(struct iperf_test *test, struct iperf_stream *sp, cJSON *
iprintf(test, report_bw_udp_format, sp->socket, st, et, ubuf, nbuf, irp->jitter * 1000.0, irp->interval_cnt_error, irp->interval_packet_count, lost_percent, irp->omitted?report_omitted:"");
}
}
if (test->logfile)
iflush(test);
}
/**************************************************************************/