]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Many files:
authorHarlan Stenn <stenn@ntp.org>
Tue, 16 May 2000 03:38:28 +0000 (03:38 -0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 16 May 2000 03:38:28 +0000 (03:38 -0000)
  * include/ntp_stdlib.h:
  * libntp/systime.c (adj_systime):
  * ntpd/ntp_loopfilter.c (loop_config):
  * ntpd/ntp_util.c (stats_config):
  * ports/winnt/ntpd/nt_clockstuff.c (adj_systime):
  sys_maxfreq -> MAXFREQ
  Per Dave Mills.

bk: 3920c2b4kLNGHNqv892ZGvewpZei5A

ChangeLog
include/ntp_stdlib.h
libntp/systime.c
ntpd/ntp_loopfilter.c
ntpd/ntp_util.c
ports/winnt/ntpd/nt_clockstuff.c

index c96247c6a18eb1e486f8732e6a1745b81a0278a5..9b94d8dbbfb8605106380a5e228f518ff1484361 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-05-15  Harlan Stenn  <stenn@whimsy.udel.edu>
+
+       * include/ntp_stdlib.h: 
+       * libntp/systime.c (adj_systime): 
+       * ntpd/ntp_loopfilter.c (loop_config): 
+       * ntpd/ntp_util.c (stats_config): 
+       * ports/winnt/ntpd/nt_clockstuff.c (adj_systime): 
+       sys_maxfreq -> MAXFREQ
+       Per Dave Mills.
+
 2000-05-14  Harlan Stenn  <stenn@whimsy.udel.edu>
 
        * acinclude.m4: Typo...
index 092af3811ea98ffd6fb361cfeaa8fd6d9953f465..d10f67946dd80fb4941dee4f4f00c18b22d569a1 100644 (file)
@@ -153,7 +153,5 @@ extern HANDLE       hServDoneEvent;
 /* systime.c */
 extern int     systime_10ms_ticks;     /* adj sysclock in 10ms increments */
 
-extern double  sys_maxfreq;            /* max frequency correction */
-
 /* version.c */
 extern const char *Version;            /* version declaration */
index 43aaefd0bafd2d9d8949b4c1c5f34b8538b91063..05f4460b476ee143463c4e7603e0480e4352db88 100644 (file)
@@ -36,7 +36,6 @@ int   systime_10ms_ticks = 0; /* adj sysclock in 10ms increments */
  * clock.
  */
 double sys_residual = 0;       /* residual from previous adjustment */
-double sys_maxfreq = MAXFREQ;  /* max frequency correction */
 
 
 /*
@@ -140,8 +139,8 @@ adj_systime(
                }
        } else 
 #endif
-               if (dtemp > sys_maxfreq)
-                       dtemp = sys_maxfreq;
+               if (dtemp > MAXFREQ)
+                       dtemp = MAXFREQ;
 
        dtemp = dtemp * 1e6 + .5;
 
index 88f61bf17e0e840fabfd777b2060fdd00db2399f..0ad99dbfb762fa3aecfe3001eb0894444474a2fc 100644 (file)
@@ -537,10 +537,10 @@ local_clock(
         */
        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;
+       if (drift_comp > MAXFREQ)
+               drift_comp = MAXFREQ;
+       else if (drift_comp <= -MAXFREQ)
+               drift_comp = -MAXFREQ;
        dtemp = SQUARE(clock_stability);
        etemp = SQUARE(etemp) - dtemp;
        clock_stability = SQRT(dtemp + etemp / CLOCK_AVG);
@@ -743,10 +743,10 @@ loop_config(
                 */
                rstclock(S_FSET);
                drift_comp = freq;
-               if (drift_comp > sys_maxfreq)
-                       drift_comp = sys_maxfreq;
-               if (drift_comp < -sys_maxfreq)
-                       drift_comp = -sys_maxfreq;
+               if (drift_comp > MAXFREQ)
+                       drift_comp = MAXFREQ;
+               if (drift_comp < -MAXFREQ)
+                       drift_comp = -MAXFREQ;
 #ifdef KERNEL_PLL
                /*
                 * If the phase-lock code is implemented in the kernel,
index df4d5003dc22a3a9f1b6cf2def3d0758bcaade3b..21604fe9c83db5591360f5b8d8c87bfd45226061 100644 (file)
@@ -352,7 +352,7 @@ stats_config(
                }
                (void) fclose(fp);
                if (   !finite(old_drift)
-                   || (fabs(old_drift) > (sys_maxfreq * 1e6))) {
+                   || (fabs(old_drift) > (MAXFREQ * 1e6))) {
                        msyslog(LOG_ERR, "invalid frequency (%f) in %s", 
                            old_drift, stats_drift_file);
                        exit(1);
index 63fa662baf198b0b122f477bd7d328e855333f43..b66da88238ddc1d8ef8d5a0c0c36d526dbb5446f 100644 (file)
@@ -7,7 +7,6 @@
 #include "ntp_timer.h"
 
 extern double sys_residual;    /* residual from previous adjustment */
-extern double sys_maxfreq;
 
 static long last_Adj = 0;
 
@@ -53,8 +52,8 @@ adj_systime(
                dtemp = -dtemp;
        }
 
-       if (dtemp > sys_maxfreq)
-               dtemp = sys_maxfreq;
+       if (dtemp > MAXFREQ)
+               dtemp = MAXFREQ;
 
        dtemp = dtemp * 1e6;