Skip to content

Commit d0a1936

Browse files
committed
add flag description to man page
1 parent 4b8570f commit d0a1936

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/iperf3.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ restart the server after \fIn\fR seconds in case it gets stuck. In
233233
one-off mode, this is the number of seconds the server will wait
234234
before exiting.
235235
.TP
236+
.BR --server-max-duration " "
237+
max time, in seconds, that an iperf client can run against the server.
238+
When the sum of the client's time and omit values exceeds the max duration set by the server
239+
or the client's time value is 0, the measurement is rejected.
240+
.TP
236241
.BR --server-bitrate-limit " \fIn\fR[KMGT]"
237242
set a limit on the server side, which will cause a test to abort if
238243
the client specifies a test of more than \fIn\fR bits per second, or

src/iperf_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ iperf_exchange_parameters(struct iperf_test *test)
22532253
if (get_parameters(test) < 0)
22542254
return -1;
22552255

2256-
if (test->max_server_duration > 0 && ((test->duration + test->omit) > test->max_server_duration) || test->duration == 0) {
2256+
if ((test->max_server_duration > 0) && (((test->duration + test->omit) > test->max_server_duration) || (test->duration == 0))) {
22572257
if (iperf_set_send_state(test, SERVER_ERROR) != 0)
22582258
return -1;
22592259

0 commit comments

Comments
 (0)