Date: Fri, 18 Feb 2000 01:15:19 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Alfred Perlstein <bright@wintelcom.net> Cc: Omachonu Ogali <oogali@intranova.net>, freebsd-newbies@freebsd.org, freebsd-questions@freebsd.org Subject: Re: CPU Information Message-ID: <20000218011519.A329@marder-1> In-Reply-To: <20000217164929.D21720@fw.wintelcom.net> References: <Pine.BSF.4.10.10002171902350.96234-100000@hydrant.intranova.net> <20000217164929.D21720@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 17, 2000 at 04:49:29PM -0800, Alfred Perlstein wrote: > * 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. > You mean s/1000000/1048576/g ? Are you sure? As posted on a K6-233, 64MB: # ./cpuinfo FreeBSD CPU Information Version 0.1 http://tribune.intranova.net Architecture: i386 Number of CPUs: 1 CPU Model: AMD-K6tm w/ multimedia extensions CPU Speed: 233MHz Total Memory: 63MB User Memory: 43MB After s/1000000/1048576/g : # ./cpuinfo FreeBSD CPU Information Version 0.1 http://tribune.intranova.net Architecture: i386 Number of CPUs: 1 CPU Model: AMD-K6tm w/ multimedia extensions CPU Speed: 223MHz Total Memory: 60MB User Memory: 41MB > 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-questions" in the body of the message -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com 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?20000218011519.A329>