added in fallback for getting L1,3 cache data.

This commit is contained in:
Harald Hope 2018-09-10 15:56:26 -07:00
parent cf1f213ae9
commit c842901804

4
inxi
View file

@ -7387,6 +7387,10 @@ 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){
# some cpus only show Socket Designation: Internal cache
if (!$id && $value =~ /^Configuration:.* Level.*([1-3])\b/){
$id = "L$1";
}
# variants: L3 - Cache; L3 Cache; L3-cache # variants: L3 - Cache; L3 Cache; L3-cache
if ($value =~ /^Socket Designation: (L[1-3])\b/){ if ($value =~ /^Socket Designation: (L[1-3])\b/){
$id = $1; $id = $1;