output cores per if > total
This commit is contained in:
parent
d895adc73e
commit
00084a7219
|
@ -64,7 +64,9 @@ public class CpuInfo extends SigarCommandBase {
|
||||||
println("Model.........." + info.getModel());
|
println("Model.........." + info.getModel());
|
||||||
println("Mhz............" + info.getMhz());
|
println("Mhz............" + info.getMhz());
|
||||||
println("Total CPUs....." + info.getTotalCores());
|
println("Total CPUs....." + info.getTotalCores());
|
||||||
if (info.getTotalCores() != info.getTotalSockets()) {
|
if ((info.getTotalCores() != info.getTotalSockets()) ||
|
||||||
|
(info.getCoresPerSocket() > info.getTotalCores()))
|
||||||
|
{
|
||||||
println("Physical CPUs.." + info.getTotalSockets());
|
println("Physical CPUs.." + info.getTotalSockets());
|
||||||
println("Cores per CPU.." + info.getCoresPerSocket());
|
println("Cores per CPU.." + info.getCoresPerSocket());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue