Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa14c11f authored by Yangster-mac's avatar Yangster-mac
Browse files

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

Test: statsd unit test passed.
Change-Id: I3c76846da169b36c447c77db76b3deeda87e9e6e
parent a070b6a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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