From f3f01baefb9cdcbd294528ab0374ba5557a8f3d2 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 7 Jul 2003 20:07:39 +0000 Subject: [PATCH] Set step_info dump time appropriately to permit "no change" response. --- src/slurmctld/step_mgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c index ae820eda500..4f63739c2f5 100644 --- a/src/slurmctld/step_mgr.c +++ b/src/slurmctld/step_mgr.c @@ -625,8 +625,9 @@ int pack_ctld_job_step_info_response_msg(uint32_t job_id, uint32_t steps_packed = 0, tmp_offset; struct step_record *step_ptr; struct job_record *job_ptr; + time_t now = time(NULL); - pack_time(last_job_update, buffer); + pack_time(now, buffer); pack32(steps_packed, buffer); /* steps_packed placeholder */ if (job_id == 0) { @@ -677,7 +678,7 @@ int pack_ctld_job_step_info_response_msg(uint32_t job_id, /* put the real record count in the message body header */ tmp_offset = get_buf_offset(buffer); set_buf_offset(buffer, 0); - pack_time(last_job_update, buffer); + pack_time(now, buffer); pack32(steps_packed, buffer); set_buf_offset(buffer, tmp_offset); -- GitLab