openbsd-ports/net/iperf/patches/patch-src_Reporter_c
2006-08-29 19:50:22 +00:00

14 lines
540 B
Plaintext

$OpenBSD: patch-src_Reporter_c,v 1.1 2006/08/29 19:50:22 aanriot Exp $
--- src/Reporter.c.orig Mon Aug 28 02:12:10 2006
+++ src/Reporter.c Mon Aug 28 02:11:37 2006
@@ -307,6 +307,9 @@ ReportHeader* InitReport( thread_Setting
#else
// set start time
gettimeofday( &(reporthdr->report.startTime), NULL );
+ reporthdr->report.nextTime = reporthdr->report.startTime;
+ TimeAdd(reporthdr->report.nextTime, reporthdr->report.intervalTime);
+
/*
* Process the report in this thread
*/