Skip to content

Commit dc98453

Browse files
committed
Fix cgroup CPU limits detection in CLI.
1 parent 11dbc37 commit dc98453

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
* Fix cgroup CPU limits detection in CLI.
4+
35
# 1.18.5
46

57
* Attempt to detect a QEMU bug that can cause `bootsnap precompile` to hang forever when building ARM64 docker images

lib/bootsnap/cli/worker_pool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def create(size:, jobs:)
1919

2020
def default_size
2121
nprocessors = Etc.nprocessors
22-
size = [nprocessors, cpu_quota || nprocessors].min
22+
size = [nprocessors, cpu_quota&.to_i || nprocessors].min
2323
case size
2424
when 0, 1
2525
0

0 commit comments

Comments
 (0)