add getter for user and sys combined
This commit is contained in:
parent
5edf8ab64a
commit
28b71f3651
|
@ -68,6 +68,10 @@ public class CpuPerc {
|
|||
this.idle = idle;
|
||||
}
|
||||
|
||||
public double getCombined() {
|
||||
return this.user + this.sys;
|
||||
}
|
||||
|
||||
public static String format(double val) {
|
||||
String p = String.valueOf(val * 100.0);
|
||||
//cant wait for sprintf.
|
||||
|
|
Loading…
Reference in New Issue