mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:15:07 -05:00
sources: delay maxjitter/maxdistance warning messages
Avoid logging the new warning messages about exceeded maxjitter or maxdistance when only a small number of samples is collected after the source becomes reachable and the values are unstable. Log the messages only when a replacement attempt is made.
This commit is contained in:
@@ -767,14 +767,14 @@ mark_source(SRC_Instance inst, SRC_Status status)
|
|||||||
if (!inst->reported_status[status]) {
|
if (!inst->reported_status[status]) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case SRC_BAD_DISTANCE:
|
case SRC_BAD_DISTANCE:
|
||||||
if (inst->reachability_size < SOURCE_REACH_BITS && inst->bad < BAD_HANDLE_THRESHOLD)
|
if (inst->bad < BAD_HANDLE_THRESHOLD)
|
||||||
break;
|
break;
|
||||||
log_selection_source(LOGS_WARN, inst,
|
log_selection_source(LOGS_WARN, inst,
|
||||||
"Root distance of ## exceeds maxdistance of %.3f seconds",
|
"Root distance of ## exceeds maxdistance of %.3f seconds",
|
||||||
max_distance);
|
max_distance);
|
||||||
break;
|
break;
|
||||||
case SRC_JITTERY:
|
case SRC_JITTERY:
|
||||||
if (inst->reachability_size < SOURCE_REACH_BITS && inst->bad < BAD_HANDLE_THRESHOLD)
|
if (inst->bad < BAD_HANDLE_THRESHOLD)
|
||||||
break;
|
break;
|
||||||
log_selection_source(LOGS_WARN, inst,
|
log_selection_source(LOGS_WARN, inst,
|
||||||
"Jitter of ## exceeds maxjitter of %.3f seconds",
|
"Jitter of ## exceeds maxjitter of %.3f seconds",
|
||||||
|
|||||||
Reference in New Issue
Block a user