equal
deleted
inserted
replaced
1 The root dispersion calculation incorrectly stopped using the peer dispersion |
|
2 term when testing the acceptability of a NTP sever. |
|
3 |
|
4 This has been reported as NTP community bug 3093 |
|
5 http://bugs.ntp.org/show_bug.cgi?id=3093 |
|
6 This patch may be removed when upgrading to a version of NTP with that bug |
|
7 fixed. |
|
8 |
|
9 --- ntpd/ntp_proto.c |
|
10 +++ ntpd/ntp_proto.c |
|
11 @@ -4338,7 +4338,7 @@ peer_unfit( |
|
12 * plus the increment due to one host poll interval. |
|
13 */ |
|
14 if ( !(peer->flags & FLAG_REFCLOCK) |
|
15 - && root_distance(peer) >= sys_maxdist |
|
16 + && (root_distance(peer) + peer->disp) >= sys_maxdist |
|
17 + clock_phi * ULOGTOD(peer->hpoll)) |
|
18 rval |= TEST11; /* distance exceeded */ |
|
19 |
|