code: private double poolSlotsUsedWithWeightToSlotRatio(
        Pool pool, double w2sRatio, TaskType type, boolean considerMinMax) {
      double slotsTaken = 0;
      for (JobInProgress job : pool.getJobs()) {
        JobInfo info = infos.get(job);
        slotsTaken += computeShare(
           info, w2sRatio, type, considerMinMax);
      }
      return slotsTaken;
    }
docs: Compute the number of slots that would be used given a weight-to-slot
  ratio w2sRatio.