diff --git a/src/srun/srun.c b/src/srun/srun.c index 8e08a80ff2b7e8c49e0c643478b4b3c3eb31e9cf..b898cec846e7d62cfd6f4c9b529d5fa6ee116ba7 100644 --- a/src/srun/srun.c +++ b/src/srun/srun.c @@ -328,6 +328,8 @@ _allocate_nodes(void) } sigaction(SIGINT, &old_action, NULL); } + if (!opt.nprocs_set) /* can vary by min-max node count */ + opt.nprocs = resp->node_cnt; return resp; }