sources: set reference after loading dump files

After loading the dump files with the -r option, immediately perform a
source selection with forced setting of the reference. This shortens the
interval when a restarted server doesn't respond with synchronized time.
It no longer needs to wait for the first measurement from the best
source (which had to pass all the filters).
This commit is contained in:
Miroslav Lichvar 2021-02-03 17:41:39 +01:00
parent f8610d69f0
commit fa3052e776

View file

@ -1455,7 +1455,13 @@ SRC_ReloadSources(void)
for (i = 0; i < n_sources; i++) {
load_source(sources[i]);
/* Allow an immediate update of the reference */
sources[i]->updates++;
}
/* Select sources and set the reference */
SRC_SelectSource(NULL);
}
/* ================================================== */