From 8e0503b96d4b76e7f39bf263743934baa75886f8 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Tue, 27 Oct 2009 16:58:31 +0000 Subject: [PATCH] another check in the slurmctld for previous check --- src/slurmctld/job_mgr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 89e79a14ae1..1246c54f546 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -5401,6 +5401,14 @@ int update_job(job_desc_msg_t * job_specs, uid_t uid) if (job_specs->begin_time) { if (IS_JOB_PENDING(job_ptr) && detail_ptr) { + /* Make sure this time is current, it does no + good for accounting to say this job could had + started in the past since the job isn't + going to start until now as the earliest. + */ + if(job_specs->begin_time < now) + job_specs->begin_time = now; + detail_ptr->begin_time = job_specs->begin_time; update_accounting = true; if ((job_ptr->priority == 1) && -- GitLab