Skip to content

Commit

Permalink
Merge pull request #1848 from davidBar-On/issue-1847-second-fix-to-se…
Browse files Browse the repository at this point in the history
…nd-when-bitrate-limit-is-set

Extending PR #1821 fix to PR #1773 for sending when bitrate is set
  • Loading branch information
swlars authored Mar 5, 2025
2 parents 7b2af28 + d77d64e commit 3c725cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ iperf_send_mt(struct iperf_stream *sp)
}
#if defined(HAVE_CLOCK_NANOSLEEP) || defined(HAVE_NANOSLEEP)
/* Should check if green light can be set, as pacing timer is not supported in this case */
if (throttle_check && !throttle_check_per_message) {
if (throttle_check && (!throttle_check_per_message || message_sent == 0)) {
#else /* !HAVE_CLOCK_NANOSLEEP && !HAVE_NANOSLEEP */
if (!throttle_check_per_message || message_sent == 0) { /* Throttle check if was not checked for each send */
#endif /* HAVE_CLOCK_NANOSLEEP, HAVE_NANOSLEEP */
Expand Down

0 comments on commit 3c725cc

Please sign in to comment.