diff --git a/cmds/statsd/src/metrics/ValueMetricProducer.cpp b/cmds/statsd/src/metrics/ValueMetricProducer.cpp index 69330ba2a0c7f..df8763cda244c 100644 --- a/cmds/statsd/src/metrics/ValueMetricProducer.cpp +++ b/cmds/statsd/src/metrics/ValueMetricProducer.cpp @@ -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;