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

am: 64307ea578

Change-Id: I8d4c27f386e4e952d2d32f627ea3818d8f50334e
This commit is contained in:
android-build-team Robot
2018-05-08 16:46:37 -07:00
committed by android-build-merger

View File

@@ -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;