found even more cache variant syntaxes!

This commit is contained in:
Harald Hope 2018-09-10 16:09:40 -07:00
parent eb6294f0b0
commit d2b452218c

4
inxi
View file

@ -7389,8 +7389,8 @@ sub cpu_cache_dmi {
splice @item, 0, 3; splice @item, 0, 3;
($id,$amount) = ('',0); ($id,$amount) = ('',0);
foreach my $value (@item){ foreach my $value (@item){
# variants: L3 - Cache; L3 Cache; L3-cache # variants: L3 - Cache; L3 Cache; L3-cache; CPU Internal L1
if ($value =~ /^Socket Designation: (L[1-3])\b/){ if ($value =~ /^Socket Designation:.* (L[1-3])\b/){
$id = $1; $id = $1;
} }
# some cpus only show Socket Designation: Internal cache # some cpus only show Socket Designation: Internal cache