Fix a call to iprintf(), also fix sequencing of some output flushes.

Related to Issue #119.
This commit is contained in:
Bruce A. Mah 2014-03-14 15:48:31 -07:00
parent aeb6938d5a
commit 3fa8072e9b
2 changed files with 3 additions and 3 deletions

View File

@ -355,8 +355,8 @@ iperf_run_client(struct iperf_test * test)
} else if (test->verbose) {
iprintf(test, "%s\n", version);
iprintf(test, "%s", "");
fflush(stdout);
iprintf("%s\n", get_system_info());
iprintf(test, "%s\n", get_system_info());
iflush(test);
}
/* Start the client and connect to the server */

View File

@ -449,8 +449,8 @@ iperf_run_server(struct iperf_test *test)
} else if (test->verbose) {
iprintf(test, "%s\n", version);
iprintf(test, "%s", "");
fflush(stdout);
iprintf(test, "%s\n", get_system_info());
iflush(test);
}
// Open socket and listen