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

Commit 6a748eee authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

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

am: 64307ea5

Change-Id: I8d4c27f386e4e952d2d32f627ea3818d8f50334e
parents ebbf943c 64307ea5
Loading
Loading
Loading
Loading
+1 −1
Original line number 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
            // diff in this case.
            if (interval.startUpdated) {
                if (value > interval.start) {
                if (value >= interval.start) {
                    interval.sum += (value - interval.start);
                } else {
                    interval.sum += value;