user ProcTime.getTotal

This commit is contained in:
Doug MacEachern 2004-08-21 00:26:12 +00:00
parent 9b89e1b9f8
commit 67c6b5dcd0
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class Ps extends SigarCommandBase {
} }
private static String getCpuTime(ProcTime time) { private static String getCpuTime(ProcTime time) {
long t = (time.getUser() + time.getSys()); long t = time.getTotal();
return t/60 + ":" + t%60; return t/60 + ":" + t%60;
} }