MacOS Lion Number of CPUs always 0
Bug #869269 reported by
Andreas Xenos
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Released
|
High
|
mortheres |
Bug Description
In the Ocsinventory:
my $processorn = $h->{'Number Of Processors'} || $h->{'Number Of CPUs'};
whereas in MacOS X 10.7 Lion the system_profiler returns the number as: "Number of Processors: 1" (case sensitive).
I added another option in this line of code in case the agent runs on 10.7 .
my $processorn = $h->{'Number Of Processors'} || $h->{'Number Of CPUs'} || $h->{'Number of Processors'}; # 10.7
affects: | ocsinventory-deploy-tool → ocsinventory-unix-agent |
Changed in ocsinventory-unix-agent: | |
status: | In Progress → Fix Committed |
Changed in ocsinventory-unix-agent: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Andreas,
Thanks a lot to your report. It is a know problem and we are currently working on it. The problem is due to Mac::Sysprofile perl module with has bugs about getting CPU and memories informations under MacOSX Snow Leopard and MacOSX Lion.
You can follow the thread here: https:/ /rt.cpan. org/Public/ Bug/Display. html?id= 52983#txn- 709767
We will solve this issue as soon as possible.
Regards,
Guillaume