From owner-freebsd-bugs Wed May 30 10:30:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 438B737B42C for ; Wed, 30 May 2001 10:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4UHU4i03264; Wed, 30 May 2001 10:30:04 -0700 (PDT) (envelope-from gnats) Date: Wed, 30 May 2001 10:30:04 -0700 (PDT) Message-Id: <200105301730.f4UHU4i03264@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jim Pirzyk Subject: Re: kern/27759: linux module does not support sysinfo system call Reply-To: Jim Pirzyk Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/27759; it has been noted by GNATS. From: Jim Pirzyk To: Garrett Wollman , Jim.Pirzyk@disney.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: kern/27759: linux module does not support sysinfo system call Date: Wed, 30 May 2001 10:27:29 -0700 On Wednesday 30 May 2001 09:11 am, Garrett Wollman wrote: > < > + sysinfo.loads[i] = (double) averunnable.ldavg[i] / > > averunnable.fscale; > > Can't use floating-point math in the kernel. Upon further inspection, all we need is this: sysinfo.loads[i] = averunnable.ldavg[i]; Since both sysinfo.loads and averunnable.ldavg are both arrays of longs. - JimP -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message