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

Test: statsd unit test passed.
Change-Id: I3c76846da169b36c447c77db76b3deeda87e9e6e
This commit is contained in:
Yangster-mac
2018-01-05 12:00:37 -08:00
parent a070b6a40c
commit fa14c11f05

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