From 9f6d59ed2c826b0075925b17fd5cdf7ac36f02f7 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 22 May 2006 18:17:08 +0000
Subject: [PATCH] Correct job_id need for test2.7

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

diff --git a/src/scontrol/scontrol.c b/src/scontrol/scontrol.c
index 02c3b5c7de2..97b3c94c605 100644
--- a/src/scontrol/scontrol.c
+++ b/src/scontrol/scontrol.c
@@ -469,7 +469,7 @@ _pid_info(pid_t job_pid)
 		return;
 	}
 	for (i=0; i<10000; i++)
-		rem_time = slurm_get_rem_time(0);
+		rem_time = slurm_get_rem_time(job_id);
 
 	printf("Slurm job id %u ends at %s\n", job_id, ctime(&end_time));
 	printf("slurm_get_rem_time is %ld\n", rem_time);
-- 
GitLab