test sockets/cores > 0

This commit is contained in:
Doug MacEachern 2008-04-11 03:33:07 +00:00
parent a3364ec38d
commit ae063a9019
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ public class TestCpuInfo extends SigarTestCase {
traceln("model=" + info.getModel()); traceln("model=" + info.getModel());
traceln("mhz=" + info.getMhz()); traceln("mhz=" + info.getMhz());
traceln("cache size=" + info.getCacheSize()); traceln("cache size=" + info.getCacheSize());
assertGtZeroTrace("totalSockets", info.getTotalSockets());
assertGtZeroTrace("totalCores", info.getTotalCores());
assertTrue(info.getTotalSockets() <= info.getTotalCores()); assertTrue(info.getTotalSockets() <= info.getTotalCores());
} }