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

This commit is contained in:
android-build-team Robot
2018-05-08 23:31:40 +00:00
committed by Android (Google) Code Review

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;