[packages] iperf: update to 2.0.5
[openwrt/svn-archive/archive.git] / net / iperf / patches / 001-set-report-next-time-in-single-thread-mode.patch
1 --- a/src/Reporter.c
2 +++ b/src/Reporter.c
3 @@ -308,6 +308,11 @@ ReportHeader* InitReport( thread_Setting
4 #else
5 // set start time
6 gettimeofday( &(reporthdr->report.startTime), NULL );
7 +
8 + // set next time
9 + reporthdr->report.nextTime = reporthdr->report.startTime;
10 + TimeAdd( reporthdr->report.nextTime, reporthdr->report.intervalTime );
11 +
12 /*
13 * Process the report in this thread
14 */