aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-11 15:41:43 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-11 15:41:43 +0530
commit8d5bd8ba755dc15d5b8311da85a5ad78b5a53a77 (patch)
tree4f0981ed832fbe84d4363790afcf6a59a524b0bc
parent83932dbff7d5b85283c9fef01bfaed4b6fec318f (diff)
jobs/job_cost: count the job itself
-rw-r--r--src/jobs.c2
1 files changed, 1 insertions, 1 deletions
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)