bk: 4cc1deaahfmas9tAI3K4a4CZh5XLDQ
+* [Bug 1671] Audoomatic delay calibration is sometimes inaccurate.
(4.2.7p68) 2010/10/22 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1669] from 4.2.6p3-RC5: NTP fails to compile on IBM AIX 5.3.
* [Bug 1670] Fix peer->bias and broadcastdelay.
sys_rootdisp += clock_phi;
if (fabs(clock_offset) < CLOCK_FLOOR)
freq_cnt = 0;
- else if (freq_cnt > 0)
+ else if (freq_cnt > 0 && sys_leap != LEAP_NOTINSYNC)
freq_cnt--;
#ifndef LOCKCLOCK
*/
if (peer->cast_flags & MDF_BCLNT) {
peer->cast_flags &= ~MDF_BCLNT;
- peer->delay = (peer->offset - p_offset) * 2;
+ peer->delay = fabs(peer->offset - p_offset) * 2;
}
p_del = peer->delay;
p_offset += p_del / 2;