Skip to content

Commit

Permalink
add xeon-specific pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Aug 23, 2012
1 parent ddc4481 commit 582f5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/FusionInventory/Agent/Task/Inventory/Input/Solaris/CPU.pm
Expand Up @@ -127,6 +127,11 @@ sub _getPhysicalCPUs {
$cpu->{speed} = $2;
next;
}

if ($line =~ /Intel\(r\) Xeon\(r\) CPU +(\S+)/) {
my $cpu = $cpus[-1];
$cpu->{type} = "Xeon $1";
}
}
close $handle;

Expand Down
2 changes: 1 addition & 1 deletion t/inventory/solaris/cpu.t
Expand Up @@ -29,7 +29,7 @@ my %pcpu_tests = (
],
unstable10x => [
4,
{ speed => '2333', type => 'x86', count => 1 }
{ speed => '2333', type => 'Xeon E5410', count => 1 }
],
);

Expand Down

0 comments on commit 582f5ac

Please sign in to comment.