diff options
Diffstat (limited to 'net/openntpd/files/patch-ntpd.c')
| -rw-r--r-- | net/openntpd/files/patch-ntpd.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/net/openntpd/files/patch-ntpd.c b/net/openntpd/files/patch-ntpd.c index e47d20c1ac33..e3358270787c 100644 --- a/net/openntpd/files/patch-ntpd.c +++ b/net/openntpd/files/patch-ntpd.c @@ -1,23 +1,24 @@ -$FreeBSD$ - -Drift file in ppm for compatibility with reference ntpd. - ---- ntpd.c.orig 2009-11-23 20:34:47.000000000 +0100 -+++ ntpd.c 2009-11-23 20:36:38.000000000 +0100 -@@ -457,7 +457,7 @@ readfreq(void) +--- ntpd.c.orig 2015-01-08 06:57:55 UTC ++++ ntpd.c +@@ -515,7 +515,11 @@ readfreq(void) log_warn("adjfreq failed"); else if (current == 0) { if (fscanf(fp, "%le", &d) == 1) - ntpd_adjfreq(d, 0); ++ /* ++ * Drift file in ppm for compatibility ++ * with reference ntpd. ++ */ + ntpd_adjfreq(d / 1e6, 0); else log_warnx("can't read %s", DRIFTFILE); } -@@ -480,7 +480,7 @@ writefreq(double d) +@@ -538,7 +542,8 @@ writefreq(double d) return 0; } - fprintf(fp, "%e\n", d); ++ /* Drift file in ppm for compatibility with reference ntpd. */ + fprintf(fp, "%e\n", d * 1e6); r = ferror(fp); if (fclose(fp) != 0 || r != 0) { |
