]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, ntp_loopfilter.c:
authorHarlan Stenn <stenn@ntp.org>
Mon, 8 Nov 1999 01:12:40 +0000 (01:12 -0000)
committerHarlan Stenn <stenn@ntp.org>
Mon, 8 Nov 1999 01:12:40 +0000 (01:12 -0000)
  * 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 <mills@udel.edu>

bk: 38262388KiEMrcjdj5iAruVkqk8wNQ

ChangeLog
ntpd/ntp_loopfilter.c

index a85dd015bc94a0f81a6519bea8dc83d6e31fc363..e092e56d3477b1e16018bda70d080c0549e09f80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-07  Harlan Stenn  <stenn@whimsy.udel.edu>
+
+       * 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 <mills@udel.edu>
+
 1999-11-06  Harlan Stenn  <stenn@whimsy.udel.edu>
 
        * acconfig.h: RELIANTUNIX_CLOCK
index e8694a368a4464868fdcea678795e5d0e6422e1f..6e0e134af9211cc6cfc15d8bd9aa071f54b83830 100644 (file)
@@ -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);