diff options
author | bde <bde@FreeBSD.org> | 1996-07-12 07:55:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-07-12 07:55:35 +0000 |
commit | 707711886fb4db7c001d62b5d9297656e000e55c (patch) | |
tree | c02cd42ea9c14c141cb302e600386f433eae3e5d /sys | |
parent | d449c2d3d46ca2da8e867aa5c8e007225f53106b (diff) | |
download | FreeBSD-src-707711886fb4db7c001d62b5d9297656e000e55c.zip FreeBSD-src-707711886fb4db7c001d62b5d9297656e000e55c.tar.gz |
Use a big delta in adjtime() for big negative adjustments as well as
for big positive adjustments. The existence of big adjustments may
be a bug (it's not documented...) but there was no good reason for
the asymmetric behaviour.
Reviewed by: wollman
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 07c1801..775b2ba 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 - * $Id: kern_time.c,v 1.15 1996/04/07 17:38:57 bde Exp $ + * $Id: kern_time.c,v 1.16 1996/06/08 11:55:32 bde Exp $ */ #include <sys/param.h> @@ -181,7 +181,7 @@ adjtime(p, uap, retval) * overshoot and start taking us away from the desired final time. */ ndelta = atv.tv_sec * 1000000 + atv.tv_usec; - if (ndelta > bigadj) + if (ndelta > bigadj || ndelta < -bigadj) ntickdelta = 10 * tickadj; else ntickdelta = tickadj; |