make calculate method public

This commit is contained in:
Doug MacEachern 2005-11-21 22:22:15 +00:00
parent fbc109eee3
commit 5ae081f7a9
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ public class CpuPerc {
CpuPerc() {} CpuPerc() {}
static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) { public static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) {
double diffUser, diffSys, diffNice, diffIdle, diffWait, diffTotal; double diffUser, diffSys, diffNice, diffIdle, diffWait, diffTotal;
diffUser = curCpu.getUser() - oldCpu.getUser(); diffUser = curCpu.getUser() - oldCpu.getUser();