mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 05:35:06 -05:00
Fix maxchange offset check
This commit is contained in:
@@ -717,7 +717,7 @@ REF_SetReference(int stratum,
|
|||||||
UTI_DiffTimevalsToDouble(&elapsed, &now, ref_time);
|
UTI_DiffTimevalsToDouble(&elapsed, &now, ref_time);
|
||||||
our_offset = offset + elapsed * frequency;
|
our_offset = offset + elapsed * frequency;
|
||||||
|
|
||||||
if (!is_offset_ok(offset))
|
if (!is_offset_ok(our_offset))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
are_we_synchronised = leap != LEAP_Unsynchronised ? 1 : 0;
|
are_we_synchronised = leap != LEAP_Unsynchronised ? 1 : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user