From owner-freebsd-newbies Thu Feb 17 16:21:21 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 0290F37B87D; Thu, 17 Feb 2000 16:21:18 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id QAA23873; Thu, 17 Feb 2000 16:49:29 -0800 (PST) Date: Thu, 17 Feb 2000 16:49:29 -0800 From: Alfred Perlstein To: Omachonu Ogali Cc: freebsd-newbies@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: CPU Information Message-ID: <20000217164929.D21720@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from oogali@intranova.net on Thu, Feb 17, 2000 at 07:03:45PM -0500 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Omachonu Ogali [000217 16:41] wrote: > Here's a simple app to display the CPU information on a FreeBSD machine. > I hope it helps anyone... It's nice, but output is incorrect, the convertions from normal numbers to MB should be done via powers of 2 not powers of 10. Why not submit it as a port? -Alfred > > --- snip --- > /* > * FreeBSD CPU Information 0.1 > * --------------------------- > * Simple program to display the total RAM, and CPU information. > * Compile: cc -o cpuinfo cpuinfo.c > * --------------------------- > * Omachonu Ogali > */ ... > > totalmem = (totalmem - 1000000) / 1000000; > usermem = (usermem - 1000000) / 1000000; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message