mirror of
https://github.com/smxi/inxi.git
synced 2025-01-18 16:37:49 +00:00
fixed it so that only HT and SMP will show and not others, and fixed date
This commit is contained in:
parent
55088e4efd
commit
66023a5559
10
inxi
10
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
|
||||
|
|
Loading…
Reference in a new issue