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:
parent
f8610d69f0
commit
fa3052e776
1 changed files with 6 additions and 0 deletions
|
@ -1455,7 +1455,13 @@ SRC_ReloadSources(void)
|
||||||
|
|
||||||
for (i = 0; i < n_sources; i++) {
|
for (i = 0; i < n_sources; i++) {
|
||||||
load_source(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue