diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-01-25 23:31:48 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-01-25 23:31:48 +0000 |
commit | 4bb9555af88941610c9d462f12830588c2b59523 (patch) | |
tree | 030ef4140d05791c98bdb6d0ef0a2a0d674d5ce3 /sys/kern/kern_clock.c | |
parent | 0abadb8cc9b60023b9d8d54ebc2e36909bdd52fc (diff) |
Improve adjtime() for odd hz values; from Dennis Ferguson (NetBSD PR# 2787)
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 4 |
1 files 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; } |