mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
sources: allow setting minsamples and maxsamples for each source
The minsamples and maxsamples directives now set the default value, which can be overriden for individual sources in the server/peer/pool and refclock directives.
This commit is contained in:
@@ -40,6 +40,8 @@ typedef struct {
|
||||
int poll_target;
|
||||
int version;
|
||||
int max_sources;
|
||||
int min_samples;
|
||||
int max_samples;
|
||||
uint32_t authkey;
|
||||
double max_delay;
|
||||
double max_delay_ratio;
|
||||
@@ -57,6 +59,8 @@ typedef struct {
|
||||
#define SRC_DEFAULT_MINSTRATUM 0
|
||||
#define SRC_DEFAULT_POLLTARGET 6
|
||||
#define SRC_DEFAULT_MAXSOURCES 4
|
||||
#define SRC_DEFAULT_MINSAMPLES (-1)
|
||||
#define SRC_DEFAULT_MAXSAMPLES (-1)
|
||||
#define INACTIVE_AUTHKEY 0
|
||||
|
||||
#endif /* GOT_SRCPARAMS_H */
|
||||
|
||||
Reference in New Issue
Block a user