diff --git a/src/sstat/sstat.c b/src/sstat/sstat.c index 59ca249e0394fda032793b64fa7b8a8cf6a59d59..0b407afe387e151fefb25abeceffbcd8305ad5a6 100644 --- a/src/sstat/sstat.c +++ b/src/sstat/sstat.c @@ -246,7 +246,7 @@ int main(int argc, char **argv) job_ptr->job_array[0].start_protocol_ver; stepid = SLURM_BATCH_SCRIPT; hl = hostlist_create(job_ptr->job_array[0].nodes); - nodelist = hostlist_pop(hl); + nodelist = hostlist_shift(hl); free_nodelist = true; hostlist_destroy(hl); slurm_free_job_info_msg(job_ptr);