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

Commit 64307ea5 authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "Should not use the absolute value when the value does not change." into pi-dev

parents 668556cd 613a7e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -396,7 +396,7 @@ void ValueMetricProducer::onMatchedLogEventInternalLocked(
            // If not, there was a reset event. We take the absolute value as
            // If not, there was a reset event. We take the absolute value as
            // diff in this case.
            // diff in this case.
            if (interval.startUpdated) {
            if (interval.startUpdated) {
                if (value > interval.start) {
                if (value >= interval.start) {
                    interval.sum += (value - interval.start);
                    interval.sum += (value - interval.start);
                } else {
                } else {
                    interval.sum += value;
                    interval.sum += value;