commit | 12942956bcd6213d3349227ae8567e63f9644935 | [log] [tgz] |
---|---|---|
author | David Chen <dwchen@google.com> | Mon Dec 04 14:28:43 2017 -0800 |
committer | David Chen <dwchen@google.com> | Mon Dec 04 14:28:43 2017 -0800 |
tree | 9ef059c08e76712df9722cf29947f298e1a53ebe | |
parent | 2e8f3807379f5d5d151ad2cb434d8a7aca910238 [diff] |
Tiny fix to bug when statsd should clear data. Previously, we always sent a broadcast, even after we have exceeded the memory limit for this config key. We switch the order so that we drop the data if the limit is exceeded. If greater than 90% of the way to the limit, we send the broadcast. We need to find a way to unit-test this behavior. Test: N/A. Change-Id: I6ea40b9e34dceb19805d9af24495d72878f787e0