summaryrefslogtreecommitdiff
path: root/cmds/statsd/src/metrics/MetricsManager.cpp
diff options
context:
space:
mode:
authorOlivier Gaillard <gaillard@google.com>2019-02-06 14:52:58 +0000
committerOlivier Gaillard <gaillard@google.com>2019-02-07 15:59:56 +0000
commit808bfd196f63e2bc33edeb7d9eba608edac72a03 (patch)
tree907a9abcab64ef3448efa4db95d412ba19c3b6dc /cmds/statsd/src/metrics/MetricsManager.cpp
parent31e6a70ca1f4c92da43468cb1da67b0e68773f10 (diff)
Flush the bucket before creating a partial bucket.
- this is consistent with what we do in onConditionChanged, we first call flushBucketIfNecessary and then pull the data - fixed a bug when partial bucket is not created and previous full bucket is dropped There are lots of tests changed because the bucket is now flushed after onDataPulled. Also the interval value/base change because of the flush so the value has already become the base and the intervals have been trimmed. Test: atest statsd_test Bug: 123985255 Change-Id: Ia1b07106656c1fb12e3d761c69998cde86d72239
Diffstat (limited to 'cmds/statsd/src/metrics/MetricsManager.cpp')
0 files changed, 0 insertions, 0 deletions