]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: include skew in local sync status setting
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Aug 2018 14:05:47 +0000 (16:05 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 21 Aug 2018 10:06:57 +0000 (12:06 +0200)
reference.c

index d6eea69c810566b3c1b8b03f76e7838218610df3..63bc86f69fa3379d83220b980eb7e3b5c9fa5d7a 100644 (file)
@@ -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