private long longToMillis(long time) {
    if (time < 9999999999l) {
      return time * 1000;
    }
    return time;
  }
Adds zero/null values towards the end of metrics sequence as well as the
beginning to support backward compatibility with Ganglia.
We use step if only a single datapoint is found.
It is assumed that @TimelineMetric.metricsValues are sorted in ascending
order and thee is no padding between the interval.

@param metric AMS @TimelineMetric
@param temporalInfo @TemporalInfo Requested interval
ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/MetricsPaddingMethod.java