From: tholo Date: Sat, 25 Jan 1997 23:31:47 +0000 (+0000) Subject: Improve adjtime() for odd hz values; from Dennis Ferguson (NetBSD PR# 2787) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1ece79fee586b77f63d0024929fdcd5ea9cbe20f;p=openbsd Improve adjtime() for odd hz values; from Dennis Ferguson (NetBSD PR# 2787) --- diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 0ec0ed779e6..d2a8ae4462f 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.13 1996/09/09 04:50:33 tholo Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.14 1997/01/25 23:31:47 tholo Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -426,7 +426,7 @@ hardclock(frame) #endif /* !NTP */ /* Imprecise 4bsd adjtime() handling */ if (timedelta != 0) { - delta = tick + tickdelta; + delta += tickdelta; timedelta -= tickdelta; }