public void calculateCpuMin(double min){
  if (cpuMin == -1) {
    cpuMin=min;
  }
 else {
    cpuMin=Math.min(cpuMin,min);
  }
}

public void calculateCpuMin ( double min ) { if ( cpuMin == - 1 ) { cpuMin = min ; } else { cpuMin = Math . min ( cpuMin , min ) ; } }
sets the minimum and deals with the - 1 initialization ! .
