commit | 88525f7db84c94dcc41e99066a993e5fb9f41a0a | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Wed Sep 11 14:34:43 2019 +0800 |
committer | JW Wang <wangchun@google.com> | Thu Sep 12 11:06:18 2019 +0800 |
tree | 3cc6f7db282c6b9e0a28e706b84c93077ea57eb6 | |
parent | dfa5268d38143cfd6455838bebe1f03caa212c18 [diff] |
Fix the algorithm counting the package failures Use the sliding window algorithm to detect if there exists a window containing failures equal to or above the trigger threshold. Bug: 140841942 Test: atest PackageWatchdogTest Change-Id: I34a20e4d3b98a093dffa05fc7c7c026905834b53