2ef127e196ba5b475a5dcfac10f639b46f5ee080
[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 @@ -309,6 +309,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 */