mirror of
https://github.com/smxi/inxi.git
synced 2025-09-02 18:49:12 +00:00
added in fallback for getting L1,3 cache data.
This commit is contained in:
parent
cf1f213ae9
commit
c842901804
1 changed files with 5 additions and 1 deletions
4
inxi
4
inxi
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue