We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b2af28 + d77d64e commit 3c725ccCopy full SHA for 3c725cc
src/iperf_api.c
@@ -2065,7 +2065,7 @@ iperf_send_mt(struct iperf_stream *sp)
2065
}
2066
#if defined(HAVE_CLOCK_NANOSLEEP) || defined(HAVE_NANOSLEEP)
2067
/* Should check if green light can be set, as pacing timer is not supported in this case */
2068
- if (throttle_check && !throttle_check_per_message) {
+ if (throttle_check && (!throttle_check_per_message || message_sent == 0)) {
2069
#else /* !HAVE_CLOCK_NANOSLEEP && !HAVE_NANOSLEEP */
2070
if (!throttle_check_per_message || message_sent == 0) { /* Throttle check if was not checked for each send */
2071
#endif /* HAVE_CLOCK_NANOSLEEP, HAVE_NANOSLEEP */
0 commit comments