mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bsd cruft cleanup
This commit is contained in:
parent
488688a832
commit
c11ab3fca1
5
inxi
5
inxi
|
@ -3933,7 +3933,6 @@ get_cpu_data_bsd()
|
||||||
sub(/[[:space:]]*@.*/,"",$NF)
|
sub(/[[:space:]]*@.*/,"",$NF)
|
||||||
cpuModel=$NF
|
cpuModel=$NF
|
||||||
}
|
}
|
||||||
|
|
||||||
END {
|
END {
|
||||||
print cpuModel "," cpuClock "," cpuCache "," cpuFlags "," cpuBogomips "," cpuVendor
|
print cpuModel "," cpuClock "," cpuCache "," cpuFlags "," cpuBogomips "," cpuVendor
|
||||||
print "N/A"
|
print "N/A"
|
||||||
|
@ -3953,7 +3952,6 @@ get_cpu_flags_bsd()
|
||||||
if [[ $BSD_VERSION == 'openbsd' ]];then
|
if [[ $BSD_VERSION == 'openbsd' ]];then
|
||||||
gawk_fs='='
|
gawk_fs='='
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $Dmesg_Boot_Data ]];then
|
if [[ -n $Dmesg_Boot_Data ]];then
|
||||||
cpu_flags=$( gawk -F "=" '
|
cpu_flags=$( gawk -F "=" '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
@ -4040,7 +4038,6 @@ get_cpu_ht_multicore_smp_data()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# array of logical processors, both HT and physical
|
# array of logical processors, both HT and physical
|
||||||
|
|
||||||
/^processor/ {
|
/^processor/ {
|
||||||
gsub(/,/, " ", $NF)
|
gsub(/,/, " ", $NF)
|
||||||
gsub(/^ +| +$/, "", $NF)
|
gsub(/^ +| +$/, "", $NF)
|
||||||
|
@ -4060,7 +4057,6 @@ get_cpu_ht_multicore_smp_data()
|
||||||
a_processor_id[proc_iter] = nr
|
a_processor_id[proc_iter] = nr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# array of physical cpu ids, note, this will be unset for vm cpus in many cases
|
# array of physical cpu ids, note, this will be unset for vm cpus in many cases
|
||||||
# because they have no physical cpu, so we cannot assume this will be here.
|
# because they have no physical cpu, so we cannot assume this will be here.
|
||||||
/^physical/ {
|
/^physical/ {
|
||||||
|
@ -4095,7 +4091,6 @@ get_cpu_ht_multicore_smp_data()
|
||||||
for ( i in a_physical_id ) {
|
for ( i in a_physical_id ) {
|
||||||
num_of_physical_cpus++
|
num_of_physical_cpus++
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
## count unique cores ##
|
## count unique cores ##
|
||||||
for ( i in a_core_id ) {
|
for ( i in a_core_id ) {
|
||||||
|
|
Loading…
Reference in a new issue