branch one, fixes

This commit is contained in:
inxi-svn 2014-09-18 03:56:47 +00:00
parent 034015fcb3
commit 8a7eafa6ec

10
inxi
View file

@ -5,7 +5,7 @@
#### Script Name: inxi
#### Version: 2.2.5
#### Date: 2014-09-17
#### Patch Number: 03-b1
#### Patch Number: 04-b1
########################################################################
#### SPECIAL THANKS
########################################################################
@ -4025,8 +4025,8 @@ get_cpu_data_bsd()
IGNORECASE=1
}
$1 ~ /^(CPU|cpu0)$/ {
if ( $NF ~ /[^0-9][0-9\.]+[-[:space:]]*[MG]Hz/) {
max=gensub(/.*[^0-9]([0-9\.]+[-[:space:]]*[MG]Hz).*/,"\\1",1,$NF)
if ( $NF ~ /[^0-9\.][0-9\.]+[-[:space:]]*[MG]Hz/) {
max=gensub(/.*[^0-9\.]([0-9\.]+[-[:space:]]*[MG]Hz).*/,"\\1",1,$NF)
if (max ~ /MHz/) {
sub(/[-[:space:]]*MHz/,"",max)
}
@ -4064,8 +4064,8 @@ get_cpu_data_bsd()
if ( $NF ~ /[0-9]+[[:space:]]*[KM]B[[:space:]]+L2 cache/) {
cpuCache=gensub(/.*[^0-9]([0-9]+[[:space:]]*[KM]B)[[:space:]]+L2 cach.*/,"\\1",1,$NF)
}
if ( $NF ~ /[^0-9][0-9\.]+[-[:space:]]*[MG]Hz/) {
max=gensub(/.*[^0-9]([0-9\.]+[-[:space:]]*[MG]Hz).*/,"\\1",1,$NF)
if ( $NF ~ /[^0-9\.][0-9\.]+[-[:space:]]*[MG]Hz/) {
max=gensub(/.*[^0-9\.]([0-9\.]+[-[:space:]]*[MG]Hz).*/,"\\1",1,$NF)
if (max ~ /MHz/) {
sub(/[-[:space:]]*MHz/,"",max)
}