Skip to content

Commit

Permalink
mxqd: Fix max job per node limit
Browse files Browse the repository at this point in the history
fixes 603a8c8
  • Loading branch information
mariux committed Sep 24, 2015
1 parent 168c565 commit 4834dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void group_init(struct mxq_group_list *group)
jobs_max /= g->job_threads;

/* limit maximum number of jobs on user/group request */
if (jobs_max > g->job_max_per_node)
if (g->job_max_per_node && jobs_max > g->job_max_per_node)
jobs_max = g->job_max_per_node;

slots_max = jobs_max * slots_per_job;
Expand Down

0 comments on commit 4834dda

Please sign in to comment.