reference: include skew in local sync status setting
This commit is contained in:
parent
2a030c0d0c
commit
870545d3cb
1 changed files with 2 additions and 1 deletions
|
@ -1072,7 +1072,8 @@ REF_SetReference(int stratum,
|
|||
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
|
||||
less useful when disclosed to NTP and cmdmon clients for estimating
|
||||
|
|
Loading…
Reference in a new issue