aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-04-15 08:58:24 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-04-15 08:58:24 +0000
commitb9c6e8bdbd7497b866cf34f0d99041ae03af5369 (patch)
tree58365f9ceffe8b51a0ca8e6fe05b7a9ff0a5ec37 /sys/kern
parent96671974e110760964f630237113e674e0f00e1d (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_ntptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index 96870e05970d..4a9c7a60cc42 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -373,9 +373,9 @@ ntp_adjtime(struct thread *td, struct ntp_adjtime_args *uap)
* returned only by ntp_gettime();
*/
if (time_status & STA_NANO)
- ntv.offset = time_monitor;
+ ntv.offset = L_GINT(time_offset);
else
- ntv.offset = time_monitor / 1000; /* XXX rounding ? */
+ ntv.offset = L_GINT(time_offset) / 1000; /* XXX rounding ? */
ntv.freq = L_GINT((time_freq / 1000LL) << 16);
ntv.maxerror = time_maxerror;
ntv.esterror = time_esterror;