From 8d5bd8ba755dc15d5b8311da85a5ad78b5a53a77 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 11 Jul 2024 15:41:43 +0530 Subject: jobs/job_cost: count the job itself --- src/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobs.c b/src/jobs.c index 3c17dc4..2e1e0c4 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -125,7 +125,7 @@ int job_parents_list_insert(struct job *job, struct job *parent) int job_cost(struct job *job) { - int32_t builds = 0; + int32_t builds = 1; for (size_t i = 0; i < job->deps_filled; i++) { if (job->deps[i]->insubstituters) -- cgit v1.2.3