Improve adjtime() for odd hz values; from Dennis Ferguson (NetBSD PR# 2787)
authortholo <tholo@openbsd.org>
Sat, 25 Jan 1997 23:31:47 +0000 (23:31 +0000)
committertholo <tholo@openbsd.org>
Sat, 25 Jan 1997 23:31:47 +0000 (23:31 +0000)
sys/kern/kern_clock.c

index 0ec0ed7..d2a8ae4 100644 (file)
@@ -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;
        }