Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sysctlbyname( "hw.availcpu" ) fails




On Jun 29, 2007, at 1:33 AM, Steve Checkoway wrote:

Oh yes, that would be far more than I'd ever want to know and possibly more than they'd care to send me. The model of the processor, the number of them, their speed, the version of the OS and the amount of RAM they have installed is about all I was really looking for. Plus,

$ time system_profiler > /dev/null

real	0m4.025s
user	0m0.753s
sys	0m0.639s

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.

You can ask it for less (to a degree, at any rate).

But I understand your concern about sniffing more than the customer would be comfortable telling you.

 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Michael Smith <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Steve Checkoway <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.