code: @Deprecated
    private Long getStandardizedCounterValue(String counterName, Long counterValue) {
      if (jobConf == null) {
        throw new ProcessingException("While correcting slot millis, jobConf is null");
      }
      long yarnSchedulerMinMB = this.jobConf.getLong(Constants.YARN_SCHEDULER_MIN_MB,
            Constants.DEFAULT_YARN_SCHEDULER_MIN_MB);
      long updatedCounterValue = 0L;
      long memoryMb = 0L;
      String key;
      if (Constants.SLOTS_MILLIS_MAPS.equals(counterName)) {
        key = Constants.MAP_MEMORY_MB_CONF_KEY;
        memoryMb = getMemoryMb(key);
        updatedCounterValue = counterValue * yarnSchedulerMinMB / memoryMb;
        this.jobDetails.setMapSlotMillis(updatedCounterValue);
      } else {
        key = Constants.REDUCE_MEMORY_MB_CONF_KEY;
        memoryMb = getMemoryMb(key);
        updatedCounterValue = counterValue * yarnSchedulerMinMB / memoryMb;
        this.jobDetails.setReduceSlotMillis(updatedCounterValue);
      }
  
      LOG.info("Updated " + counterName + " from " + counterValue + " to " + updatedCounterValue
          + " based on " + Constants.YARN_SCHEDULER_MIN_MB + ": " + yarnSchedulerMinMB
          + " and " + key + ": " + memoryMb);
      return updatedCounterValue;
    }
docs: Issue #51 in hraven on github
  map and reduce slot millis in Hadoop 2.0 are not calculated properly.
  They are aproximately 4X off by actual value.
  calculate the correct map slot millis as
  hadoop2ReportedMapSlotMillis * yarn.scheduler.minimum-allocation-mb
  / mapreduce.mapreduce.memory.mb
  similarly for reduce slot millis
  
  Marking method as deprecated as noted in Pull Request #132
  @param counterName
  @param counterValue
  @return corrected counter value