mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
added in fallback for getting L1,3 cache data.
This commit is contained in:
parent
cf1f213ae9
commit
c842901804
6
inxi
6
inxi
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue