Subject: | Darwin npcu case-problem |
Hi
On Darwin 10.8 (intel, Snow Leopard) I get this
$ /usr/sbin/system_profiler -detailLevel mini SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: MacBook Air
Model Identifier: MacBookAir3,2
Processor Name: Intel Core 2 Duo
Processor Speed: 1,86 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 6 MB
Memory: 2 GB
Bus Speed: 1,07 GHz
Boot ROM Version: MBA31.0061.B01
SMC Version (system): 1.66f55
I suppose "of" was always lowercase.
ncpu fails.
Patch attached
--
Reini Urban
Subject: | sysinfo-darwin.diff |
diff -bu ./lib/Test/Smoke/SysInfo.pm~ ./lib/Test/Smoke/SysInfo.pm
--- ./lib/Test/Smoke/SysInfo.pm~ 2010-11-01 13:12:32.000000000 -0500
+++ ./lib/Test/Smoke/SysInfo.pm 2011-11-08 17:22:30.000000000 -0600
@@ -410,7 +410,7 @@
'Processor Speed' => 'CPU Speed',
'Model Name' => 'Machine Name',
'Model Identifier' => 'Machine Model',
- 'Number Of Processors' => 'Number Of CPUs',
+ 'Number of Processors' => 'Number Of CPUs',
);
for my $newkey ( keys %keymap ) {
my $oldkey = $keymap{ $newkey };