]> git.pld-linux.org Git - packages/ntp.git/blob - ntp-4.2.6p3-delaycalib.patch
4380a096ab2c88e8262b659fb61158f9014a6f18
[packages/ntp.git] / ntp-4.2.6p3-delaycalib.patch
1 diff -up ntp-4.2.6p3/ntpd/ntp_proto.c.delaycalib ntp-4.2.6p3/ntpd/ntp_proto.c
2 --- ntp-4.2.6p3/ntpd/ntp_proto.c.delaycalib     2010-11-25 15:21:52.578492466 +0100
3 +++ ntp-4.2.6p3/ntpd/ntp_proto.c        2010-11-25 15:21:55.987625500 +0100
4 @@ -1498,7 +1498,7 @@ process_packet(
5                  */
6                 if (peer->cast_flags & MDF_BCLNT) {
7                         peer->cast_flags &= ~MDF_BCLNT;
8 -                       peer->delay = (peer->offset - p_offset) * 2;
9 +                       peer->delay = fabs(peer->offset - p_offset) * 2;
10                 }
11                 p_del = peer->delay;
12                 p_offset += p_del / 2;
This page took 0.016112 seconds and 2 git commands to generate.