found variant for socket designation for L cache

This commit is contained in:
Harald Hope 2018-09-10 15:42:18 -07:00
parent 9046b7873d
commit cf1f213ae9

4
inxi
View file

@ -7387,8 +7387,8 @@ sub cpu_cache_dmi {
last if $item[0] > 7; last if $item[0] > 7;
($id,$amount) = ('',0); ($id,$amount) = ('',0);
foreach my $value (@item){ foreach my $value (@item){
# variants: L3 - Cache; L3 Cache # variants: L3 - Cache; L3 Cache; L3-cache
if ($value =~ /^Socket Designation: (L[1-3])\s/){ if ($value =~ /^Socket Designation: (L[1-3])\b/){
$id = $1; $id = $1;
} }
if ($value =~ /^Installed Size: (.*B)$/){ if ($value =~ /^Installed Size: (.*B)$/){