Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2000 16:49:29 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Omachonu Ogali <oogali@intranova.net>
Cc:        freebsd-newbies@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: CPU Information
Message-ID:  <20000217164929.D21720@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.10.10002171902350.96234-100000@hydrant.intranova.net>; from oogali@intranova.net on Thu, Feb 17, 2000 at 07:03:45PM -0500
References:  <Pine.BSF.4.10.10002171902350.96234-100000@hydrant.intranova.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Omachonu Ogali <oogali@intranova.net> [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 <oogali@intranova.net>
>  */
...
> 
> 	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000217164929.D21720>