summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorJW Wang <wangchun@google.com>2019-09-11 14:34:43 +0800
committerJW Wang <wangchun@google.com>2019-09-12 11:06:18 +0800
commit88525f7db84c94dcc41e99066a993e5fb9f41a0a (patch)
tree3cc6f7db282c6b9e0a28e706b84c93077ea57eb6 /startop/scripts/lib/cmd_utils.py
parentdfa5268d38143cfd6455838bebe1f03caa212c18 (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
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions