diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-06-07 06:29:04 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-06-07 06:29:04 +0000 |
commit | b3297db76a0d82f09e6418259693beff1b99b895 (patch) | |
tree | c65c41f365e0bb3dc1cbc84f616919f33b8b4fb9 /usr.sbin/ntpd/ntpd.h | |
parent | c406fbe0f0bbe6acad773e991b8c334e7297f4c2 (diff) |
Compensate old offsets with the amount of adjustment done, avoiding
overcompensating. From DragonFly, uses recent adjtime(2) changes,
so you'll need a recent kernel. ok henning@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index ec7c0a7d2d4..76aa6d098fa 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.70 2006/06/04 18:58:13 otto Exp $ */ +/* $OpenBSD: ntpd.h,v 1.71 2006/06/07 06:29:03 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -276,6 +276,8 @@ time_t error_interval(void); void set_next(struct ntp_peer *, time_t); /* util.c */ +double gettime_corrected(void); +double getoffset(void); double gettime(void); void d_to_tv(double, struct timeval *); double lfp_to_d(struct l_fixedpt); |