make getCpuTime public

This commit is contained in:
Doug MacEachern 2004-11-10 23:23:48 +00:00
parent 0e3be6714e
commit 76e26b5d88
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public class Ps extends SigarCommandBase {
println(join(getInfo(this.proxy, pid))); println(join(getInfo(this.proxy, pid)));
} }
private static String getCpuTime(ProcTime time) { public static String getCpuTime(ProcTime time) {
long t = time.getTotal(); long t = time.getTotal();
return t/60 + ":" + t%60; return t/60 + ":" + t%60;
} }