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

moved break before code that doesn't need to happen if the clause is true

parent 5d436613
No related branches found
No related tags found
No related merge requests found
......@@ -786,6 +786,11 @@ static int _apply_new_usage(struct job_record *job_ptr, double decay_factor,
run_delta = (int) (end_period - start_period);
/* job already has been accounted for
go to next */
if (run_delta < 1)
return 0;
/* cpu_run_delta will is used to
decrease qos and assocs
grp_used_cpu_run_secs values. When
......@@ -807,12 +812,6 @@ static int _apply_new_usage(struct job_record *job_ptr, double decay_factor,
else
cpu_run_delta = job_ptr->total_cpus * run_delta;
/* job already has been accounted for
go to next */
if (run_delta < 1)
return 0;
if (priority_debug)
info("job %u ran for %d seconds on %u cpus",
job_ptr->job_id, run_delta, job_ptr->total_cpus);
......
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