format output, check total > 0

This commit is contained in:
Doug MacEachern 2005-05-13 18:06:23 +00:00
parent bb5021d3ad
commit 4bc5584626
1 changed files with 6 additions and 6 deletions

View File

@ -12,20 +12,20 @@ public class TestCpu extends SigarTestCase {
} }
private void checkCpu(Cpu cpu) { private void checkCpu(Cpu cpu) {
traceln("User=" + cpu.getUser()); traceln("User..." + cpu.getUser());
assertTrue(cpu.getUser() >= 0); assertTrue(cpu.getUser() >= 0);
traceln("Sys=" + cpu.getSys()); traceln("Sys...." + cpu.getSys());
assertTrue(cpu.getSys() >= 0); assertTrue(cpu.getSys() >= 0);
traceln("Idle=" + cpu.getIdle()); traceln("Idle..." + cpu.getIdle());
assertTrue(cpu.getIdle() >= 0); assertTrue(cpu.getIdle() >= 0);
traceln("Wait=" + cpu.getWait()); traceln("Wait..." + cpu.getWait());
assertTrue(cpu.getWait() >= 0); assertTrue(cpu.getWait() >= 0);
traceln("Total=" + cpu.getTotal()); traceln("Total.." + cpu.getTotal());
assertTrue(cpu.getTotal() >= 0); assertTrue(cpu.getTotal() > 0);
} }
public void testCreate() throws Exception { public void testCreate() throws Exception {