+* Clock select bugfix from Dave Mills.
+* [Bug 1554]: peer may stay selected as system peer after becoming
+ unreachable.
* [Bug 1644] from 4.2.6p3: cvo.sh should use lsb_release to identify
linux distros.
(4.2.7p57) 2010/09/27 Released by Harlan Stenn <stenn@ntp.org>
* save the offset, delay and jitter. Note the jitter must not
* be less than the precision.
*/
- if (m == 0)
+ if (m == 0) {
+ clock_select();
return;
+ }
etemp = fabs(peer->offset - peer->filter_offset[k]);
peer->offset = peer->filter_offset[k];
found++;
}
+#if 0
/*
* If the number of candidates found outside the
* interval is greater than the number of falsetickers,
*/
if (found > allow)
continue;
+#endif
/*
* If an interval containing truechimers is found, stop.
*/
j = 0;
for (i = 0; i < nlist; i++) {
+ double d;
+
peer = peers[i];
- if (nlist > 1 && (peer->offset <= low || peer->offset >=
- high) && !(peer->flags & FLAG_TRUE))
+ d = root_distance(peer);
+ if (nlist > 1 && (peer->offset + d < low ||
+ peer->offset - d > high) && !(peer->flags & FLAG_TRUE))
continue;
#ifdef REFCLOCK