Loading cmds/statsd/src/metrics/ValueMetricProducer.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -396,7 +396,7 @@ void ValueMetricProducer::onMatchedLogEventInternalLocked( // If not, there was a reset event. We take the absolute value as // If not, there was a reset event. We take the absolute value as // diff in this case. // diff in this case. if (interval.startUpdated) { if (interval.startUpdated) { if (value > interval.start) { if (value >= interval.start) { interval.sum += (value - interval.start); interval.sum += (value - interval.start); } else { } else { interval.sum += value; interval.sum += value; Loading Loading
cmds/statsd/src/metrics/ValueMetricProducer.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -396,7 +396,7 @@ void ValueMetricProducer::onMatchedLogEventInternalLocked( // If not, there was a reset event. We take the absolute value as // If not, there was a reset event. We take the absolute value as // diff in this case. // diff in this case. if (interval.startUpdated) { if (interval.startUpdated) { if (value > interval.start) { if (value >= interval.start) { interval.sum += (value - interval.start); interval.sum += (value - interval.start); } else { } else { interval.sum += value; interval.sum += value; Loading