mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:05:06 -05:00
reference: include skew in local sync status setting
This commit is contained in:
@@ -1072,7 +1072,8 @@ REF_SetReference(int stratum,
|
|||||||
LOG(LOGS_WARN, "System clock was stepped by %.6f seconds", -step_offset);
|
LOG(LOGS_WARN, "System clock was stepped by %.6f seconds", -step_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
LCL_SetSyncStatus(are_we_synchronised, offset_sd, offset_sd + root_delay / 2.0 + root_dispersion);
|
LCL_SetSyncStatus(are_we_synchronised, offset_sd,
|
||||||
|
root_delay / 2.0 + get_root_dispersion(&now));
|
||||||
|
|
||||||
/* Add a random error of up to one second to the reference time to make it
|
/* Add a random error of up to one second to the reference time to make it
|
||||||
less useful when disclosed to NTP and cmdmon clients for estimating
|
less useful when disclosed to NTP and cmdmon clients for estimating
|
||||||
|
|||||||
Reference in New Issue
Block a user