Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 808bfd19 authored by Olivier Gaillard's avatar Olivier Gaillard
Browse files

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
parent 31e6a70c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment