From c11ab3fca199e1cf95dc93f104da203f795a70fc Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 1 May 2014 23:23:13 +0000 Subject: [PATCH] bsd cruft cleanup --- inxi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/inxi b/inxi index 0244e36..17aca4e 100755 --- a/inxi +++ b/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 ) {