Re: sysctlbyname( "hw.availcpu" ) fails
Re: sysctlbyname( "hw.availcpu" ) fails
- Subject: Re: sysctlbyname( "hw.availcpu" ) fails
- From: Daniel Vollmer <email@hidden>
- Date: Fri, 6 Jul 2007 13:35:23 +0200
On 29.06.2007, at 19:27, Eric Schlegel wrote:
On Jun 29, 2007, at 1:33 AM, Steve Checkoway wrote:
That's more time than I'd care to take on start up. I appreciate
the suggestions though. I've been using Gestalt and figured I
should maybe move to some newer interface.
Is Gestalt failing to give you the info you need in some way?
Note that I'm not the original poster, but yes there is. :)
MenuMeters (which displays your CPU type as well as the number of
processors — so only cosmetic in a sense) for example is terribly
incorrect on Intel Macs. NXGetLocalArchInfo() always returns "Intel
80486" and Gestalt gives "i586" (Pentium) for every CPU type.
I've fixed a version of MenuMeters for my personal use to use
"system_profiler" for now, as I have not found a programmatic way to
obtain the information (number of physical processors, not core count
(as "2 x Intel Core 2 Duo" is incorrect!) as well as the cpuid string).
Daniel.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden