diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Ps.java b/bindings/java/src/net/hyperic/sigar/cmd/Ps.java index a96fb022..e637a794 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Ps.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Ps.java @@ -165,7 +165,7 @@ public class Ps extends SigarCommandBase { } private static String getCpuTime(ProcTime time) { - long t = (time.getUser() + time.getSys()); + long t = time.getTotal(); return t/60 + ":" + t%60; }