From 49e5a88080c18219ffbd5d059572e51d991048bc Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 20 Nov 2002 18:43:33 +0000
Subject: [PATCH] Set default node count to 1 (for better squeue output,
 instead of zero nodes requested)

---
 src/srun/opt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/srun/opt.c b/src/srun/opt.c
index 34db0831b79..0d9a016a963 100644
--- a/src/srun/opt.c
+++ b/src/srun/opt.c
@@ -524,7 +524,7 @@ static void opt_default()
 	opt.nprocs_set = false;
 	opt.cpus_per_task = 1;
 	opt.cpus_set = false;
-	opt.nodes = 0; /* nodes need not be set */
+	opt.nodes = 1;
 	opt.nodes_set = false;
 	opt.time_limit = -1;
 	opt.partition = NULL;
-- 
GitLab