Skip to content
Snippets Groups Projects
Commit 66201036 authored by Danny Auble's avatar Danny Auble
Browse files

Follow on to last commit. Make it so no job that is currently pending

will have a time displayed when truncating time.

Bug 3940.
parent 3e11d04c
No related branches found
No related tags found
No related merge requests found
...@@ -613,10 +613,12 @@ static int _cluster_get_jobs(mysql_conn_t *mysql_conn, ...@@ -613,10 +613,12 @@ static int _cluster_get_jobs(mysql_conn_t *mysql_conn,
if (job->start && (job->start < job_cond->usage_start)) if (job->start && (job->start < job_cond->usage_start))
job->start = job_cond->usage_start; job->start = job_cond->usage_start;
if (!job->end || job->end > job_cond->usage_end) /* Only set an end time if the job started */
if ((job->start && !job->end) ||
(job->end > job_cond->usage_end))
job->end = job_cond->usage_end; job->end = job_cond->usage_end;
if (!job->start) if (!job->start && job->end)
job->start = job->end; job->start = job->end;
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment