]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1514] Typo in ntp_proto.c: fabs(foo < .4) should be fabs(foo) < .4
authorHarlan Stenn <stenn@ntp.org>
Wed, 31 Mar 2010 08:11:55 +0000 (04:11 -0400)
committerHarlan Stenn <stenn@ntp.org>
Wed, 31 Mar 2010 08:11:55 +0000 (04:11 -0400)
bk: 4bb303cbX5SkdQd-X08kNf9XTZjJIQ

ChangeLog
ntpd/ntp_proto.c

index 27cd1d595068dccf647b51d2542bbc4b38264988..1152967dce1524255051ba2af20b29f76aef840e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 ---
 
+* [Bug 1514] Typo in ntp_proto.c: fabs(foo < .4) should be fabs(foo) < .4.
 * [Bug 1464] synchronization source wrong for refclocks ARCRON_MSF (27)
   and SHM (28).
 * Correct Windows port's refclock_open() to return 0 on failure not -1.
index db5e04d5c0168d5104902659552eb5af05e3f0ef..367cc5eadd254a73acb9ba3975299082ab1e795c 100644 (file)
@@ -2677,7 +2677,7 @@ clock_select(void)
         * if there is a prefer peer or there are no survivors and none
         * are required.
         */
-       if (typepps != NULL && fabs(sys_offset < 0.4) &&
+       if (typepps != NULL && fabs(sys_offset) < 0.4 &&
            (typepps->refclktype != REFCLK_ATOM_PPS ||
            (typepps->refclktype == REFCLK_ATOM_PPS && (sys_prefer !=
            NULL || (typesystem == NULL && sys_minsane == 0))))) {