Skip to content

Commit

Permalink
fix: Consistently print target_bandwidth in the JSON start section. (e…
Browse files Browse the repository at this point in the history
…snet#1177)

Previously we only did this for TCP tests with non-default -b.

Follow-on commit to esnet#1168 and esnet#776.
  • Loading branch information
bmah888 authored and hanvari committed Jul 3, 2021
1 parent 1f70267 commit e3da02c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,8 @@ iperf_on_connect(struct iperf_test *test)
else {
cJSON_AddNumberToObject(test->json_start, "tcp_mss_default", test->ctrl_sck_mss);
}
if (test->settings->rate)
cJSON_AddNumberToObject(test->json_start, "target_bitrate", test->settings->rate);
}
cJSON_AddNumberToObject(test->json_start, "target_bitrate", test->settings->rate);
} else if (test->verbose) {
iperf_printf(test, report_cookie, test->cookie);
if (test->protocol->id == SOCK_STREAM) {
Expand Down

0 comments on commit e3da02c

Please sign in to comment.