mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
up bug fix for branch one
This commit is contained in:
parent
da08950acc
commit
cc85ccbce5
33
inxi
33
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.9.8-b1-t1
|
#### version: 0.9.8-b1-t2
|
||||||
#### Date: 3 February 2009
|
#### Date: 3 February 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -1587,32 +1587,11 @@ get_cpu_ht_multicore_smp_data()
|
||||||
else {
|
else {
|
||||||
type = "SMP"
|
type = "SMP"
|
||||||
}
|
}
|
||||||
# if ( 1.1 == 1 ){print "yes"}else{print "no"}
|
}
|
||||||
|
# make sure to handle up cpus too
|
||||||
# if ( physical_cpu_count == 1 ) {
|
else {
|
||||||
# if ( physical_cpu_count == core_count ) {
|
core_count = 1
|
||||||
# type = "HT" # this is more than likely a P4 w/HT or an Atom 270
|
physical_cpu_count = 1
|
||||||
# }
|
|
||||||
# else {
|
|
||||||
# if ( core_count == num_of_cores && core_count == num_of_processors) {
|
|
||||||
# type = "MCP"
|
|
||||||
# cores = core_count
|
|
||||||
# }
|
|
||||||
# else {
|
|
||||||
# type = "HT" # this is i7 or Atom 330 or some Xeons
|
|
||||||
# cores = core_count
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# else {
|
|
||||||
# type = "SMP"
|
|
||||||
# processors = physical_cpu_count
|
|
||||||
#
|
|
||||||
# if ( num_of_cores > 1 ) {
|
|
||||||
# type = "SMPMC" # processors could be both MCP and SMP
|
|
||||||
# cores = core_count
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
print type " " physical_cpu_count " " core_count
|
print type " " physical_cpu_count " " core_count
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue