diff options
author | phk <phk@FreeBSD.org> | 2002-04-15 08:58:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-15 08:58:24 +0000 |
commit | af54e26ee09efaba52b9ca719e1e1785e9332381 (patch) | |
tree | 58365f9ceffe8b51a0ca8e6fe05b7a9ff0a5ec37 /sys | |
parent | e14073ff4815d3c5d29808560fe904b483386b19 (diff) | |
download | FreeBSD-src-af54e26ee09efaba52b9ca719e1e1785e9332381.zip FreeBSD-src-af54e26ee09efaba52b9ca719e1e1785e9332381.tar.gz |
In the ntp_adjtime(2) syscall, return our actual estimate of unapplied
offset correction instead of the most recent offset applied.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_ntptime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index 96870e0..4a9c7a6 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; |