diff --git a/src/sstat/sstat.c b/src/sstat/sstat.c index 33e29d866cd5404ecee88962cae58146c4780276..cf597bc0da2869872c9a09f6ac3774766aa57433 100644 --- a/src/sstat/sstat.c +++ b/src/sstat/sstat.c @@ -244,7 +244,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);