From a264245277898374ea72cddc9ef06b7e91bfdefc Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Mon, 13 Nov 2006 17:20:49 +0000
Subject: [PATCH] fixed output for timeout info in the hierarchical
 communications.

---
 src/common/slurm_protocol_api.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c
index 1f67a9ba013..eea92637122 100644
--- a/src/common/slurm_protocol_api.c
+++ b/src/common/slurm_protocol_api.c
@@ -930,9 +930,8 @@ List slurm_receive_msgs(slurm_fd fd, int steps, int timeout)
 		orig_timeout = timeout;
 	}
 	if(steps) {
-		orig_timeout = timeout/steps;
+		orig_timeout = (timeout - (5000*(steps-1)))/steps;
 		steps--;
-		orig_timeout -= (5000*steps);
 	} 
 
 	debug4("orig_timeout was %d we have %d steps and a timeout of %d",
-- 
GitLab