In the ntp_adjtime(2) syscall, return our actual estimate of unapplied
offset correction instead of the most recent offset applied.
This commit is contained in:
parent
96671974e1
commit
b9c6e8bdbd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user