From 4834dda44afefe67c4337bd2c78e048a58790fd4 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Thu, 24 Sep 2015 15:40:43 +0200 Subject: [PATCH] mxqd: Fix max job per node limit fixes 603a8c8 --- mxqd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxqd.c b/mxqd.c index e923b06..17ba877 100644 --- a/mxqd.c +++ b/mxqd.c @@ -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;