From 66023a5559fa852127802ab08e2290d1377b40e4 Mon Sep 17 00:00:00 2001 From: "Trash80.v2.0" Date: Mon, 5 Jan 2009 21:52:56 +0000 Subject: [PATCH] fixed it so that only HT and SMP will show and not others, and fixed date --- inxi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index cfa3863..b0b7d1b 100644 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.1.b2.1 -#### Date: January 3, 2009 +#### version: 0.9.1.b2.2 +#### Date: January 5, 2009 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -1462,7 +1462,11 @@ get_cpu_core_count() ## Because of the upcoming release of cpus with core counts over 6, a count of cores is given after Deca (10) # count the number of processors given local cpu_core_count=${A_CPU_TYPE_PCNT_CCNT[2]} - local cpu_type=${A_CPU_TYPE_PCNT_CCNT[0]} + local cpu_type='' + + if [[ ${A_CPU_TYPE_PCNT_CCNT[0]} == "HT" || ${A_CPU_TYPE_PCNT_CCNT[0]} == "SMP" ]]; then + cpu_type=${A_CPU_TYPE_PCNT_CCNT[0]} + fi # match the numberic value to an alpha value case $cpu_core_count in