diff options
Diffstat (limited to 'src/solver_greedy.c')
-rw-r--r-- | src/solver_greedy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/solver_greedy.c b/src/solver_greedy.c index 79472b5..215f678 100644 --- a/src/solver_greedy.c +++ b/src/solver_greedy.c @@ -66,6 +66,10 @@ int solver_greedy(struct job_clist *q, int32_t *max_build, struct job **job) conformity_max = conformity_cur; selected = j; } + if (conformity_cur == conformity_max && + selected->deps_filled > j->deps_filled) { + selected = j; + } } if (selected == NULL) |