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)
|
||||
cpuModel=$NF
|
||||
}
|
||||
|
||||
END {
|
||||
print cpuModel "," cpuClock "," cpuCache "," cpuFlags "," cpuBogomips "," cpuVendor
|
||||
print "N/A"
|
||||
|
@ -3953,7 +3952,6 @@ get_cpu_flags_bsd()
|
|||
if [[ $BSD_VERSION == 'openbsd' ]];then
|
||||
gawk_fs='='
|
||||
fi
|
||||
|
||||
if [[ -n $Dmesg_Boot_Data ]];then
|
||||
cpu_flags=$( gawk -F "=" '
|
||||
BEGIN {
|
||||
|
@ -4040,7 +4038,6 @@ get_cpu_ht_multicore_smp_data()
|
|||
}
|
||||
}
|
||||
# array of logical processors, both HT and physical
|
||||
|
||||
/^processor/ {
|
||||
gsub(/,/, " ", $NF)
|
||||
gsub(/^ +| +$/, "", $NF)
|
||||
|
@ -4060,7 +4057,6 @@ get_cpu_ht_multicore_smp_data()
|
|||
a_processor_id[proc_iter] = nr
|
||||
}
|
||||
}
|
||||
|
||||
# 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.
|
||||
/^physical/ {
|
||||
|
@ -4095,7 +4091,6 @@ get_cpu_ht_multicore_smp_data()
|
|||
for ( i in a_physical_id ) {
|
||||
num_of_physical_cpus++
|
||||
}
|
||||
|
||||
i = 0
|
||||
## count unique cores ##
|
||||
for ( i in a_core_id ) {
|
||||
|
|
Loading…
Reference in a new issue