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

Addition to 9f98610d. This handles the tres_alloc_cnt not existing in

_calc_billable_tres that was missed there.
parent f0b16c3f
No related branches found
No related tags found
No related merge requests found
...@@ -756,6 +756,10 @@ static double _calc_billable_tres(struct job_record *job_ptr, time_t start_time) ...@@ -756,6 +756,10 @@ static double _calc_billable_tres(struct job_record *job_ptr, time_t start_time)
double *billing_weights = NULL; double *billing_weights = NULL;
struct part_record *part_ptr = job_ptr->part_ptr; struct part_record *part_ptr = job_ptr->part_ptr;
/* We don't have any resources allocated, just return 0. */
if (!job_ptr->tres_alloc_cnt)
return 0;
/* Don't recalculate unless the job is new or resized */ /* Don't recalculate unless the job is new or resized */
if ((!fuzzy_equal(job_ptr->billable_tres, NO_VAL)) && if ((!fuzzy_equal(job_ptr->billable_tres, NO_VAL)) &&
difftime(job_ptr->resize_time, start_time) < 0.0) difftime(job_ptr->resize_time, start_time) < 0.0)
......
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