From 959caae1f740b362df0a70d8f139739d7c528ee6 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sun, 25 Jan 2009 02:22:16 +0000 Subject: [PATCH] bug fix, update version number, removed extra {...} in if clause. This doesn't fix the main xeon failure though --- inxi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inxi b/inxi index 59985f3..012d71a 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.5 -#### Date: 23 January 2009 +#### version: 0.9.6 +#### Date: 24 January 2009 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -1468,7 +1468,7 @@ get_cpu_data() else { printf("%s %s\n", max, "Mhz") } - }' $DIR_CPUINFO)) + }' $DIR_CPUINFO )) fi IFS="$ORIGINAL_IFS" @@ -1484,8 +1484,7 @@ get_cpu_ht_multicore_smp_data() # if = 1 processor then single core/processor Uni-Processor (UP) if [[ $B_CPUINFO == 'true' ]]; then - { - A_CPU_TYPE_PCNT_CCNT=( $(gawk ' + A_CPU_TYPE_PCNT_CCNT=( $( gawk ' BEGIN { FS=": "; i = 0 } {IGNORECASE = 1} /^processor/ { num_of_processors = $NF + 1 } # counts logical processors, both HT and physical /^cpu cores/ { num_of_cores = $NF } # counts physical cores @@ -1551,8 +1550,7 @@ get_cpu_ht_multicore_smp_data() } } END { print type " " processors " " cores } - ' $DIR_CPUINFO )) - } + ' $DIR_CPUINFO ) ) fi }