mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: fixup "fix --jobs so jobs scaling is applied correctly"
65ba20b955
provides a fix for job
scaling but during a merge conflict part of the patch got dropped.
This is the missing portion of the patch that was approved as part
of MR703
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/703
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
65ba20b955
commit
681c976550
1 changed files with 2 additions and 0 deletions
|
@ -1324,6 +1324,8 @@ static long compute_jobs(long n, long j)
|
|||
static void setup_parallel_compile(long ncpus, long maxcpus)
|
||||
{
|
||||
/* jobs and parallel_max set by default, config or args */
|
||||
if (jobs < 0 || jobs == JOBS_AUTO)
|
||||
jobs_scale = 1;
|
||||
jobs = compute_jobs(ncpus, jobs);
|
||||
jobs_max = compute_jobs(maxcpus, jobs_max);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue