aboutsummaryrefslogtreecommitdiff
path: root/src/iperf_server_api.c
diff options
context:
space:
mode:
authorJef Poskanzer <jef@mail.acme.com>2013-09-12 11:01:48 -0700
committerJef Poskanzer <jef@mail.acme.com>2013-09-12 11:01:48 -0700
commitf8bd11af2349ee01228fb5081ceaf5ecbbb3ecf7 (patch)
tree61323063679a08c12afd87fc77c5d4d67ec8ee04 /src/iperf_server_api.c
parent65b2261d4cdd31989e35f276eef35b839ab3bf63 (diff)
downloadiperf3-f8bd11af2349ee01228fb5081ceaf5ecbbb3ecf7.tar.gz
Ran across a little error in some code that is currently
commented out. Worth fixing anyway.
Diffstat (limited to 'src/iperf_server_api.c')
-rw-r--r--src/iperf_server_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iperf_server_api.c b/src/iperf_server_api.c
index 3494f84..d7ab665 100644
--- a/src/iperf_server_api.c
+++ b/src/iperf_server_api.c
@@ -87,10 +87,10 @@ iperf_server_listen(struct iperf_test *test)
if (test->protocol->id == Ptcp) {
if (test->settings->socket_bufsize > 0) {
unit_snprintf(ubuf, UNIT_LEN, (double) x, 'A');
- if (test->json_output)
+ if (!test->json_output)
printf("TCP window size: %s\n", ubuf);
} else {
- if (test->json_output)
+ if (!test->json_output)
printf("Using TCP Autotuning\n");
}
}