From 1ece79fee586b77f63d0024929fdcd5ea9cbe20f Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 25 Jan 1997 23:31:47 +0000 Subject: [PATCH] Improve adjtime() for odd hz values; from Dennis Ferguson (NetBSD PR# 2787) --- sys/kern/kern_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1