Skip to content

Commit

Permalink
fix: adjusted the job count to 80% of the available processing units …
Browse files Browse the repository at this point in the history
…when building with Bazel
  • Loading branch information
hanjiayuan236 committed May 5, 2023
1 parent 446c9c6 commit 852cd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/apollo_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ function run_bazel() {

local sp=" "
local spaces=" "
local count=$(nproc)
local count=$(echo "scale=0; ($(nproc) * 0.8) / 1" | bc)
if [ "$1" == "Coverage" ]; then
count="$(($(nproc) / 2))"
spaces=" "
Expand Down

0 comments on commit 852cd49

Please sign in to comment.