Skip to content

Commit 45e7019

Browse files
committed
Rebase using current 3.18+ master
1 parent 6188f81 commit 45e7019

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/iperf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ struct iperf_stream
193193
struct iperf_test* test;
194194

195195
pthread_t thr;
196-
int thread_created;
196+
int thread_created;
197197
int done;
198198

199199
/* configurable members */

src/iperf_api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ iperf_send_mt(struct iperf_stream *sp)
20622062
}
20632063
#if defined(HAVE_CLOCK_NANOSLEEP) || defined(HAVE_NANOSLEEP)
20642064
/* 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)) {
20662066
#else /* !HAVE_CLOCK_NANOSLEEP && !HAVE_NANOSLEEP */
20672067
if (!throttle_check_per_message || message_sent == 0) { /* Throttle check if was not checked for each send */
20682068
#endif /* HAVE_CLOCK_NANOSLEEP, HAVE_NANOSLEEP */

0 commit comments

Comments
 (0)