improve ufuzz duty cycle heuristic (#4045)

This commit is contained in:
Alex Lam S.L
2020-08-08 20:10:19 +01:00
committed by GitHub
parent 91f078fe35
commit e2237d8cd2
2 changed files with 13 additions and 13 deletions

View File

@@ -38,10 +38,10 @@ jobs:
while !(npm install); do echo "'npm install' failed - retrying..."; done
PERIOD=1800000
if [[ $CAUSE == "schedule" ]]; then
PERIOD=$(( 3600 * `node test/ufuzz/actions $BASE_URL $TOKEN` ))
PERIOD=`node test/ufuzz/actions $BASE_URL $TOKEN`
fi
if (( $PERIOD == 0 )); then
echo "too many jobs in queue - exiting..."
echo "too many jobs in queue - skipping..."
else
node test/ufuzz/job $PERIOD
fi