summaryrefslogtreecommitdiffstats
path: root/package/network/utils/iperf/patches/001-set-report-next-time-in-single-thread-mode.patch
blob: c61c75494a828edaefd9e67ae00e824cc82ce955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/Reporter.c
+++ b/src/Reporter.c
@@ -308,6 +308,11 @@ ReportHeader* InitReport( thread_Setting
 #else
         // set start time
         gettimeofday( &(reporthdr->report.startTime), NULL );
+
+	// set next time
+	reporthdr->report.nextTime = reporthdr->report.startTime;
+	TimeAdd( reporthdr->report.nextTime, reporthdr->report.intervalTime );
+
         /*
          * Process the report in this thread
          */