commit | 6a748eee30e15b9202e0b5264723aa5c3f5f43cd | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Tue May 08 16:46:37 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Tue May 08 16:46:37 2018 -0700 |
tree | c563f8af3dae556db5ba4e1133669c1b79a0a615 | |
parent | ebbf943c4c827700340a6cffb773afa4c15f5fcc [diff] | |
parent | 64307ea578b102215f77d28b1669621bcadd5fc1 [diff] |
Merge "Should not use the absolute value when the value does not change." into pi-dev am: 64307ea578 Change-Id: I8d4c27f386e4e952d2d32f627ea3818d8f50334e
diff --git a/cmds/statsd/src/metrics/ValueMetricProducer.cpp b/cmds/statsd/src/metrics/ValueMetricProducer.cpp index 69330ba..df8763c 100644 --- a/cmds/statsd/src/metrics/ValueMetricProducer.cpp +++ b/cmds/statsd/src/metrics/ValueMetricProducer.cpp
@@ -396,7 +396,7 @@ // 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;