Skip to content

Commit

Permalink
Use os.cpu_count instead of os.sched_getaffinity in docker/build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplOfAnImpl committed Mar 11, 2024
1 parent 31103bf commit 6e5f448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/docker/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def delete_docker_image(image_name, version):

def build_instances(version, docker_hub_user, num_jobs):
if num_jobs is None:
num_jobs = len(os.sched_getaffinity(0))
num_jobs = os.cpu_count() or 1

build_docker_image("build-tools/docker/Dockerfile.builder",
"mintlayer-builder", "latest", num_jobs)
Expand Down

0 comments on commit 6e5f448

Please sign in to comment.