From: Miroslav Lichvar Date: Fri, 17 Aug 2018 14:05:47 +0000 (+0200) Subject: reference: include skew in local sync status setting X-Git-Tag: 3.4-pre1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870545d3cb0250ddf70c36d6213d86ca1b9ba075;p=thirdparty%2Fchrony.git reference: include skew in local sync status setting --- diff --git a/reference.c b/reference.c index d6eea69c..63bc86f6 100644 --- a/reference.c +++ b/reference.c @@ -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