1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 15:34:05 +02:00
openwrt-xburst/package/network/utils/iperf/patches/001-set-report-next-time-in-single-thread-mode.patch

15 lines
428 B
Diff
Raw Normal View History

--- 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
*/