mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 11:35:07 -05:00
sourcestats: enable selection with maxsamples < 3
Setting maxsamples to 1 or 2 prevented the source from being selected as the regression would always fail. Handle this as a special case with disabled frequency tracking in order to enable a fast reference update with the -q/-Q option.
This commit is contained in:
@@ -655,6 +655,10 @@ The *maxsamples* directive sets the default maximum number of samples that
|
||||
individual sources in the <<server,*server*>> and <<refclock,*refclock*>>
|
||||
directives. The default value is 0, which disables the configurable limit. The
|
||||
useful range is 4 to 64.
|
||||
+
|
||||
As a special case, setting *maxsamples* to 1 disables frequency tracking in
|
||||
order to make the sources immediately selectable with only one sample. This can
|
||||
be useful when *chronyd* is started with the *-q* or *-Q* option.
|
||||
|
||||
[[minsamples]]*minsamples* _samples_::
|
||||
The *minsamples* directive sets the default minimum number of samples that
|
||||
|
||||
Reference in New Issue
Block a user