diff options
Diffstat (limited to 'net/openntpd/files/patch-ntpd.c')
| -rw-r--r-- | net/openntpd/files/patch-ntpd.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/openntpd/files/patch-ntpd.c b/net/openntpd/files/patch-ntpd.c new file mode 100644 index 000000000000..92cefab02d39 --- /dev/null +++ b/net/openntpd/files/patch-ntpd.c @@ -0,0 +1,24 @@ +$FreeBSD$ + +Drift file in ppm for compatibility with reference ntpd. + +--- ntpd.c.orig 2009-08-01 22:17:42.000000000 +0200 ++++ ntpd.c 2009-08-01 22:18:51.000000000 +0200 +@@ -449,7 +449,7 @@ readfreq(void) + log_warn("adjfreq failed"); + else if (current == 0) { + if (fscanf(fp, "%le", &d) == 1) +- ntpd_adjfreq(d, 0); ++ ntpd_adjfreq(d / 1e6, 0); + } + fclose(fp); + } +@@ -470,7 +470,7 @@ writefreq(double d) + return 0; + } + +- fprintf(fp, "%e\n", d); ++ fprintf(fp, "%e\n", d * 1e6); + r = ferror(fp); + if (fclose(fp) != 0 || r != 0) { + if (warnonce) { |
