protected boolean evaluate()

in src/main/java/com/microsoft/dhalion/detectors/ExcessCpuDetector.java [36:46]


  protected boolean evaluate(String instance, double free, double demand) {
    if (free <= 0) {
      return false;
    }

    if (demand <= 0) {
      return true;
    }

    return (free / demand) >= thresholdRatio;
  }