Remove unnecessary adjtimex calls

This commit is contained in:
Miroslav Lichvar
2013-06-06 19:38:36 +02:00
parent 62027f1b47
commit 8aa9eb19c8
6 changed files with 32 additions and 7 deletions

View File

@@ -44,6 +44,7 @@
#include "reports.h"
#include "nameserv.h"
#include "mkdirpp.h"
#include "sched.h"
/* ================================================== */
/* Flag indicating that we are initialised */
@@ -448,7 +449,8 @@ SRC_SelectSource(uint32_t match_refid)
return;
}
LCL_ReadCookedTime(&now, NULL);
/* This is accurate enough and cheaper than calling LCL_ReadCookedTime */
SCH_GetLastEventTime(&now, NULL, NULL);
/* Step 1 - build intervals about each source */
n_endpoints = 0;