|
Lines 1081-1086
static int _apply_new_usage(struct job_record *job_ptr,
Link Here
|
| 1081 |
memset(tres_run_delta, 0, sizeof(tres_run_delta)); |
1081 |
memset(tres_run_delta, 0, sizeof(tres_run_delta)); |
| 1082 |
if (job_ptr->tres_alloc_cnt) { |
1082 |
if (job_ptr->tres_alloc_cnt) { |
| 1083 |
for (i=0; i<slurmctld_tres_cnt; i++) { |
1083 |
for (i=0; i<slurmctld_tres_cnt; i++) { |
|
|
1084 |
if (!job_ptr->tres_alloc_cnt[i]) |
| 1085 |
continue; |
| 1084 |
tres_run_delta[i] = tres_time_delta * |
1086 |
tres_run_delta[i] = tres_time_delta * |
| 1085 |
job_ptr->tres_alloc_cnt[i]; |
1087 |
job_ptr->tres_alloc_cnt[i]; |
| 1086 |
tres_run_decay[i] = (long double)run_decay * |
1088 |
tres_run_decay[i] = (long double)run_decay * |