make calculate method public
This commit is contained in:
parent
fbc109eee3
commit
5ae081f7a9
|
@ -12,7 +12,7 @@ public class CpuPerc {
|
|||
|
||||
CpuPerc() {}
|
||||
|
||||
static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) {
|
||||
public static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) {
|
||||
double diffUser, diffSys, diffNice, diffIdle, diffWait, diffTotal;
|
||||
|
||||
diffUser = curCpu.getUser() - oldCpu.getUser();
|
||||
|
|
Loading…
Reference in New Issue