From: Harlan Stenn Date: Mon, 8 Nov 1999 01:12:40 +0000 (-0000) Subject: ChangeLog, ntp_loopfilter.c: X-Git-Tag: NTP_4_0_98_E~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7aae76af4bf6560957ada3a0854ca140db22560;p=thirdparty%2Fntp.git ChangeLog, ntp_loopfilter.c: * ntpd/ntp_loopfilter.c: Keep clock_frequency changes in a temp variable so we can record it to loopstats (near as HMS can tell). From: Dave Mills bk: 38262388KiEMrcjdj5iAruVkqk8wNQ --- diff --git a/ChangeLog b/ChangeLog index a85dd015bc..e092e56d34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-11-07 Harlan Stenn + + * ntpd/ntp_loopfilter.c: Keep clock_frequency changes in a temp + variable so we can record it to loopstats (near as HMS can tell). + From: Dave Mills + 1999-11-06 Harlan Stenn * acconfig.h: RELIANTUNIX_CLOCK diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index e8694a368a..6e0e134af9 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -531,13 +531,14 @@ local_clock( * drift_comp is a sham and used only for updating the drift * file and for billboard eye candy. */ - drift_comp += clock_frequency + flladj + plladj; + etemp = clock_frequency + flladj + plladj; + drift_comp += etemp; if (drift_comp > sys_maxfreq) drift_comp = sys_maxfreq; else if (drift_comp <= -sys_maxfreq) drift_comp = -sys_maxfreq; dtemp = SQUARE(clock_stability); - etemp = SQUARE(clock_frequency) - dtemp; + etemp = SQUARE(etemp) - dtemp; clock_stability = SQRT(dtemp + etemp / CLOCK_AVG); allan_xpt = max(CLOCK_ALLAN, clock_stability * CLOCK_ADF);