diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-03-22 14:01:58 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-03-22 14:01:58 +0000 |
commit | 3a25914cfd3844ea06a1805802aba853a9b51bd2 (patch) | |
tree | db810900b15683fa1dbe313ae47b41ea44b8ca64 /sys/kern/kern_ntptime.c | |
parent | 7f29144bc93faa5fc901525daf3b7c22bfeda6cb (diff) | |
download | src-3a25914cfd3844ea06a1805802aba853a9b51bd2.tar.gz src-3a25914cfd3844ea06a1805802aba853a9b51bd2.zip |
Make the same size rounding error both ways.
Notes
Notes:
svn path=/head/; revision=44939
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r-- | sys/kern/kern_ntptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index a69e6dddb75e..f8c0222b9261 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 */ |