From: deraadt Date: Mon, 29 Jan 1996 07:03:11 +0000 (+0000) Subject: from netbsd: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=08cbb6cebec50567c40c07f0eec1b4f8564da35d;p=openbsd from netbsd: fix off-by-one error in tickfix code. (should increment when count >= interval, because count goes from 0->(interval-1) to count interval ticks.) --- diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index d45d02a5e8f..86592699658 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_clock.c,v 1.23 1995/12/28 19:16:41 thorpej Exp $ */ +/* $NetBSD: kern_clock.c,v 1.24 1996/01/17 04:37:31 cgd Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -200,7 +200,7 @@ hardclock(frame) delta = tick; if (tickfix) { tickfixcnt++; - if (tickfixcnt > tickfixinterval) { + if (tickfixcnt >= tickfixinterval) { delta += tickfix; tickfixcnt = 0; }