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

Priority - Minor mod to not apply decay usage if the decay_factor is 1

since that will only waste time (anything * 1 = anything)
parent 79132234
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ static int _apply_decay(double decay_factor)
everything out so don't waste time doing it */
if (!decay_factor)
return SLURM_ERROR;
else if (!calc_fairshare)
else if (!calc_fairshare || (decay_factor == 1))
return SLURM_SUCCESS;
assoc_mgr_lock(&locks);
......
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