diff --git a/src/plugins/select/linear/select_linear.c b/src/plugins/select/linear/select_linear.c index fcfdd09fc3cbb3ca9f131745a4bf7997bb3012d8..2e667c403e8259954a1ba1d9baed315882194657 100644 --- a/src/plugins/select/linear/select_linear.c +++ b/src/plugins/select/linear/select_linear.c @@ -581,11 +581,9 @@ static int _job_count_bitmap(struct node_cr_record *node_cr_ptr, * allocated memory would exceed that available * and there are *any* jobs left on the node after * this one is started. */ - if (((alloc_mem + job_mem) >avail_mem) && - ((_job_preemption_killing() && - (same_prio_jobs > 0)) || - (!_job_preemption_killing() && - ((same_prio_jobs + lower_prio_jobs) > 0)))) { + if (((alloc_mem + job_mem) > avail_mem) && + ((!_job_preemption_killing()) || + ((same_prio_jobs + higher_prio_jobs) > 0))) { bit_clear(jobmap, i); continue; }