Skip to content
Snippets Groups Projects
Commit 1e66e3c0 authored by Moe Jette's avatar Moe Jette
Browse files

Don't try to print execution time to job without start time.

parent d6076293
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,7 @@ long job_time_used(job_info_t * job_ptr)
{
long delta_t;
if (job_ptr->job_state == JOB_PENDING)
if (job_ptr->start_time == 0)
delta_t = 0;
else if (job_ptr->job_state == JOB_RUNNING)
delta_t = difftime(time(NULL), job_ptr->start_time);
......
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