diff --git a/src/scontrol/scontrol.c b/src/scontrol/scontrol.c index 02c3b5c7de20d2ca227f85b89957f6f7da212b47..97b3c94c605ca9090c50541788bfdfec8d9f40fd 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);