make calculate method public
This commit is contained in:
1 parent
fbc109eee3
commit
5ae081f7a9
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user