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:
committed by
android-build-merger
commit
6a748eee30
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user