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

Commit a8bc2ccf authored by Tej Singh's avatar Tej Singh Committed by android-build-merger
Browse files

Merge "Persist metric activation across beta4/5 ota" into qt-dev am: 12ae9598

am: 52cfa0e4

Change-Id: I5ef7e569db171f8573116de64dc6f20b73674d80
parents 074a3034 52cfa0e4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -174,7 +174,9 @@ void MetricProducer::loadActiveMetricLocked(const ActiveMetric& activeMetric,
            continue;
        }
        auto& activation = it->second;
        if (activeEventActivation.state() == ActiveEventActivation::ACTIVE) {
        // If the event activation does not have a state, assume it is active.
        if (!activeEventActivation.has_state() ||
                activeEventActivation.state() == ActiveEventActivation::ACTIVE) {
            // We don't want to change the ttl for future activations, so we set the start_ns
            // such that start_ns + ttl_ns == currentTimeNs + remaining_ttl_nanos
            activation->start_ns =