From: Harlan Stenn Date: Mon, 23 Jan 2006 05:47:20 +0000 (-0500) Subject: Fix from Dave Mills: etemp gets min(), not max() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac93b50906be7b0c269e10913de39afa0cf30dab;p=thirdparty%2Fntp.git Fix from Dave Mills: etemp gets min(), not max() bk: 43d46de8MUv0lXFqFBdNcmU2SHamOQ --- diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index bc85acdfd5..33a328d428 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -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;