ntp: rework initial burst

Instead of making the initial burst only once and immediately after
chronyd start (even when iburst is specified together with the offline
option), trigger the burst whenever the connectivity changes from
offline to online.
This commit is contained in:
Miroslav Lichvar
2020-06-23 13:10:02 +02:00
parent 8882fb21e0
commit b0fe443632
4 changed files with 37 additions and 25 deletions

View File

@@ -439,7 +439,7 @@ special_mode_end(void)
if (!sources[i]->active)
continue;
/* Don't expect more updates than from an offline iburst NTP source */
/* Don't expect more updates than the initial burst of an NTP source */
if (sources[i]->reachability_size >= SOURCE_REACH_BITS - 1)
continue;