aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;