From 06d095a5b83b06d2c3569c16a646ca2fba4672d7 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Wed, 1 Oct 2014 13:07:39 -0700 Subject: [PATCH] simplify math --- src/plugins/priority/multifactor/priority_multifactor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/priority/multifactor/priority_multifactor.c b/src/plugins/priority/multifactor/priority_multifactor.c index f8513e51ec9..c9c74413fdc 100644 --- a/src/plugins/priority/multifactor/priority_multifactor.c +++ b/src/plugins/priority/multifactor/priority_multifactor.c @@ -649,11 +649,10 @@ static uint32_t _get_priority_internal(time_t start_time, priority_part = part_ptr->priority / (double)part_max_priority * (double)weight_part; - priority_part = + priority_part += (job_ptr->prio_factors->priority_age + job_ptr->prio_factors->priority_fs + job_ptr->prio_factors->priority_js - + priority_part + job_ptr->prio_factors->priority_qos - (double)(job_ptr->prio_factors->nice - NICE_OFFSET)); -- GitLab