user ProcTime.getTotal
This commit is contained in:
parent
9b89e1b9f8
commit
67c6b5dcd0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue