mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Bugfix to cpu logic
This commit is contained in:
parent
a97f8d6b54
commit
25219ba967
10
inxi
10
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 1.4.11
|
||||
#### version: 1.4.12
|
||||
#### Date: Jule 24 2010
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -2089,14 +2089,18 @@ get_cpu_ht_multicore_smp_data()
|
|||
# if = 1 processor then single core/processor Uni-Processor (UP)
|
||||
if ( num_of_processors > 1 )
|
||||
{
|
||||
if ( num_of_processors == (num_of_cores * 2 ))
|
||||
# non-multicore HT
|
||||
if ( num_of_processors == (num_of_cores * 2))
|
||||
{
|
||||
type = type "HT-"
|
||||
}
|
||||
if ( num_of_processors >= num_of_cores )
|
||||
# non-HT multi-core or HT multi-core
|
||||
if (( num_of_processors == num_of_cores) ||
|
||||
( num_of_cpus < num_of_cores))
|
||||
{
|
||||
type = type "MCP-"
|
||||
}
|
||||
# >1 cpu sockets active
|
||||
if ( num_of_cpus > 1 )
|
||||
{
|
||||
type = type "SMP-"
|
||||
|
|
Loading…
Reference in a new issue