File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ struct iperf_stream
193
193
struct iperf_test * test ;
194
194
195
195
pthread_t thr ;
196
- int thread_created ;
196
+ int thread_created ;
197
197
int done ;
198
198
199
199
/* configurable members */
Original file line number Diff line number Diff line change @@ -2062,7 +2062,7 @@ iperf_send_mt(struct iperf_stream *sp)
2062
2062
}
2063
2063
#if defined(HAVE_CLOCK_NANOSLEEP ) || defined(HAVE_NANOSLEEP )
2064
2064
/* Should check if green light can be set, as pacing timer is not supported in this case */
2065
- if (throttle_check && !throttle_check_per_message ) {
2065
+ if (throttle_check && ( !throttle_check_per_message || message_sent == 0 ) ) {
2066
2066
#else /* !HAVE_CLOCK_NANOSLEEP && !HAVE_NANOSLEEP */
2067
2067
if (!throttle_check_per_message || message_sent == 0 ) { /* Throttle check if was not checked for each send */
2068
2068
#endif /* HAVE_CLOCK_NANOSLEEP, HAVE_NANOSLEEP */
You can’t perform that action at this time.
0 commit comments