diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-04 08:02:33 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-04 08:09:16 +0530 |
commit | 956b4413f7f7c632d87962432f06c8f8214112ef (patch) | |
tree | 43a9dd01873765c3c39e4841ac52b67acee2d0d3 | |
parent | 7041d26a271752272a3bddd8a3437084c29687d9 (diff) |
solver_greedy: clean up
-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; } } |