mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 06:11:31 +00:00
Add some random delay only when creating images in parallel
This commit is contained in:
parent
ade47680a0
commit
d98ed0ac13
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ for line in "${buildlist[@]}"; do
|
|||
if [[ $jobs -lt $MULTITHREAD ]]; then
|
||||
display_alert "Building in the back $n / ${#buildlist[@]}" "Board: $BOARD Kernel:$BRANCH${RELEASE:+ Release: $RELEASE}${BUILD_DESKTOP:+ Desktop: $BUILD_DESKTOP}" "ext"
|
||||
(build_main) &
|
||||
sleep $(( ( RANDOM % 30 ) + 1 ))
|
||||
[[ $KERNEL_ONLY != yes ]] && sleep $(( ( RANDOM % 10 ) + 1 ))
|
||||
else
|
||||
display_alert "Building $buildtext $n / ${#buildlist[@]}" "Board: $BOARD Kernel:$BRANCH${RELEASE:+ Release: $RELEASE}${BUILD_DESKTOP:+ Desktop: $BUILD_DESKTOP}" "ext"
|
||||
build_main
|
||||
|
|
Loading…
Add table
Reference in a new issue