diff options
Diffstat (limited to 'src/solver_greedy.c')
-rw-r--r-- | src/solver_greedy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/solver_greedy.c b/src/solver_greedy.c index 215f678..d3dbb8f 100644 --- a/src/solver_greedy.c +++ b/src/solver_greedy.c @@ -65,9 +65,8 @@ int solver_greedy(struct job_clist *q, int32_t *max_build, struct job **job) if (conformity_cur > conformity_max) { conformity_max = conformity_cur; selected = j; - } - if (conformity_cur == conformity_max && - selected->deps_filled > j->deps_filled) { + } else if (conformity_cur == conformity_max && + selected->deps_filled > j->deps_filled) { selected = j; } } |