mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
refclock: set minimum maxlockage in local mode
Use 3 as the minimum maxlockage in the local mode to avoid disruptions due to losing the lock when a single sample is missed, e.g. when the PPS driver polling interval is slightly longer than the pulse interval and a pulse is skipped.
This commit is contained in:
@@ -237,6 +237,7 @@ RCL_AddRefclock(RefclockParameters *params)
|
||||
inst->pps_forced = 1;
|
||||
inst->lock_ref = inst->ref_id;
|
||||
inst->leap_status = LEAP_Unsynchronised;
|
||||
inst->max_lock_age = MAX(inst->max_lock_age, 3);
|
||||
}
|
||||
|
||||
if (inst->driver->poll) {
|
||||
|
||||
Reference in New Issue
Block a user