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

Commit 43699661 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't just clear mPastBuckets when onDumpReport is called."

parents 744988cd 30b6a20c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -222,10 +222,8 @@ std::unique_ptr<std::vector<uint8_t>> DurationMetricProducer::onDumpReport() {
                  (long long)mCurrentBucketStartTimeNs);

    std::unique_ptr<std::vector<uint8_t>> buffer = serializeProto();

    startNewProtoOutputStream(endTime);
    mPastBuckets.clear();

    // TODO: Properly clear the old buckets.
    return buffer;
}