Merge "Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets."

This commit is contained in:
TreeHugger Robot
2018-01-05 22:23:36 +00:00
committed by Android (Google) Code Review

View File

@@ -326,6 +326,7 @@ void GaugeMetricProducer::flushIfNeededLocked(const uint64_t& eventTimeNs) {
}
}
mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>();
mCurrentSlicedBucket = std::make_shared<DimToGaugeFieldsMap>();
// Adjusts the bucket start time