]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Log uncooked offset in refclocks log for PPS samples
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Mar 2012 12:15:26 +0000 (13:15 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Mar 2012 12:17:03 +0000 (13:17 +0100)
refclock.c

index b969afe151a6a07a0379378db8381093009b5112..3e472844312a3bf4c6278b29815c55bdc716556d 100644 (file)
@@ -452,7 +452,7 @@ RCL_AddPulse(RCL_Instance instance, struct timeval *pulse_time, double second)
   filter_add_sample(&instance->filter, &cooked_time, offset, dispersion);
   instance->leap_status = LEAP_Normal;
 
-  log_sample(instance, &cooked_time, 0, 1, second, offset, dispersion);
+  log_sample(instance, &cooked_time, 0, 1, offset + correction - instance->offset, offset, dispersion);
 
   /* for logging purposes */
   if (!instance->driver->poll)