use ProcState.toString

This commit is contained in:
Doug MacEachern 2005-11-23 19:34:47 +00:00
parent a939985b5d
commit 504ad65e3d
1 changed files with 1 additions and 7 deletions

View File

@ -14,13 +14,7 @@ public class TestProcState extends SigarTestCase {
try {
ProcState procState =
sigar.getProcState(pid);
char state = procState.getState();
traceln("[" + procState.getName() + "] " +
"pid=" + pid +
",state=" + state +
",threads=" + procState.getThreads() +
",processor=" + procState.getProcessor() +
",priority=" + procState.getPriority());
traceln("[pid=" + pid + "] " + procState);
} catch (SigarException e) {
traceln("pid " + pid + ": " + e.getMessage());
}