Skip to content

Commit

Permalink
Extending PR 1821 fix to PR 1773 for sending when bitrate is set
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed Feb 28, 2025
1 parent 7b2af28 commit d77d64e
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 d77d64e

Please sign in to comment.