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

6
inxi
View file

@ -7387,7 +7387,11 @@ sub cpu_cache_dmi {
last if $item[0] > 7;
($id,$amount) = ('',0);
foreach my $value (@item){
# variants: L3 - Cache; L3 Cache; L3-cache
# 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
if ($value =~ /^Socket Designation: (L[1-3])\b/){
$id = $1;
}