aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/solver_greedy.c5
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;
}
}