001-set-report-next-time-in-single-thread-mode.patch 428 B

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