From owner-freebsd-bugs Wed Mar 10 3:31:54 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from may.nue.org (may.nue.org [163.138.156.31]) by hub.freebsd.org (Postfix) with ESMTP id 58EB914FDA for ; Wed, 10 Mar 1999 03:31:48 -0800 (PST) (envelope-from amagai@may.nue.org) Received: by may.nue.org (8.9.3/nue.mxn1); Wed, 10 Mar 1999 20:31:25 +0900 (JST) <199903101131.UAA01456@may.nue.org> from Date: Wed, 10 Mar 1999 20:31:25 +0900 (JST) Message-Id: <199903101131.UAA01456@may.nue.org> To: bde@zeta.org.au, freebsd-bugs@FreeBSD.ORG From: amagai@nue.org Subject: Re: kern/10402: times(3) non-decreaseness broken in 4.0 In-Reply-To: <199903101004.VAA07700@godzilla.zeta.org.au> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thank you, Bruce! > Record the times returned by calcru() and adjust them on each call to Where do record the times? In proc structure (with new slots)? === How this, st = (u * st) / tot; sp->tv_sec = st / 1000000; sp->tv_usec = st % 1000000; will be if (ip == NULL) { st = (u * (st + it)) / tot; } else { st = (u * st) / tot; } sp->tv_sec = st / 1000000; sp->tv_usec = st % 1000000; System mode will be include interrput handling time. In FreeBSD-3.1-stable, calcru() is always called with NULL fourth argument. (not check 4.0) Yoshiji Amagai New Unified Environment Research Project, Tokyo Japan amagai@nue.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message