make getCpuTime public
This commit is contained in:
1 parent
0e3be6714e
commit
76e26b5d88
1 file changed
+1
-1
@@ -166,7 +166,7 @@ public class Ps extends SigarCommandBase {
|
||||
println(join(getInfo(this.proxy, pid)));
|
||||
}
|
||||
|
||||
private static String getCpuTime(ProcTime time) {
|
||||
public static String getCpuTime(ProcTime time) {
|
||||
long t = time.getTotal();
|
||||
return t/60 + ":" + t%60;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user