Date: Wed, 10 Mar 1999 20:31:25 +0900 (JST) From: amagai@nue.org To: bde@zeta.org.au, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/10402: times(3) non-decreaseness broken in 4.0 Message-ID: <199903101131.UAA01456@may.nue.org> In-Reply-To: <199903101004.VAA07700@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903101131.UAA01456>