summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ntptime.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-03-22 14:01:58 +0000
committerphk <phk@FreeBSD.org>1999-03-22 14:01:58 +0000
commitfbf7e67973487d623739b8bf1b6896396a7d3bf9 (patch)
treed4ce252b690b95e047ef61be5e4559e989634902 /sys/kern/kern_ntptime.c
parent8a3b4cd60af57577e14c914cb7ab7d5c40751d76 (diff)
downloadFreeBSD-src-fbf7e67973487d623739b8bf1b6896396a7d3bf9.zip
FreeBSD-src-fbf7e67973487d623739b8bf1b6896396a7d3bf9.tar.gz
Make the same size rounding error both ways.
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r--sys/kern/kern_ntptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index a69e6dd..f8c0222 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -281,7 +281,7 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
return (error);
s = splclock();
if (modes & MOD_FREQUENCY) {
- L_LINT(time_freq, ntv.freq / SCALE_PPM);
+ time_freq = (ntv.freq * 1000LL) << 16;
#ifdef PPS_SYNC
pps_freq = time_freq;
#endif /* PPS_SYNC */
OpenPOWER on IntegriCloud