From f185847a81ffe402c904337deb01701e078c359b Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Tue, 8 Dec 2009 23:11:10 +0000
Subject: [PATCH] change squeue to update the number of nodes in an allocation
 still active

---
 src/squeue/print.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/squeue/print.c b/src/squeue/print.c
index 9373d9c98a8..19d14cbe317 100644
--- a/src/squeue/print.c
+++ b/src/squeue/print.c
@@ -1493,8 +1493,11 @@ static int _adjust_completing (job_info_t *job_ptr, node_info_msg_t **ni)
 	hostlist_uniq(hl);
 	hostlist_ranged_string (hl, 8192, buf);
 	hostlist_destroy(hl);
-	job_ptr->num_nodes = MAX(job_ptr->num_nodes,
-				_nodes_in_list(job_ptr->nodes));
+	/* if we decrement the nodelist why not the num_nodes? this
+	 * code will set the number to the total number of nodes in
+	 * the list */
+	/* job_ptr->num_nodes = MAX(job_ptr->num_nodes, */
+	/* 			_nodes_in_list(job_ptr->nodes)); */
 	xfree (job_ptr->nodes);
 	job_ptr->nodes = xstrdup (buf);
 	return (0);
-- 
GitLab