]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix from Dave Mills: etemp gets min(), not max()
authorHarlan Stenn <stenn@ntp.org>
Mon, 23 Jan 2006 05:47:20 +0000 (00:47 -0500)
committerHarlan Stenn <stenn@ntp.org>
Mon, 23 Jan 2006 05:47:20 +0000 (00:47 -0500)
bk: 43d46de8MUv0lXFqFBdNcmU2SHamOQ

ntpd/ntp_loopfilter.c

index bc85acdfd52406922041c2efd580c6690bec5e22..33a328d428134d2277e7fa65a201120dd9e841fc 100644 (file)
@@ -490,7 +490,7 @@ local_clock(
                         * interval and poll interval. This allows
                         * oversampling, but not undersampling.
                         */ 
-                       etemp = max(mu, (u_long)ULOGTOD(sys_poll));
+                       etemp = min(mu, (u_long)ULOGTOD(sys_poll));
                        dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll);
                        plladj = fp_offset * etemp / (dtemp * dtemp);
                        break;