Skip to content

Commit

Permalink
solver_greedy/solver_report: remove redundant data
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanmohd committed Jul 11, 2024
1 parent 7d8a77e commit 456460c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/solver_greedy.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,13 @@ int solver_greedy(struct job_clist *q, int32_t *max_build, struct job **job)

if (!evanix_opts.solver_report)
continue;
printf("ℹ️ cost: %2d, conformity: %.2f <-> %s -> %s\n",
job_cost(j), conformity_cur, j->name, j->drv_path);
printf("ℹ️ cost: %2d, conformity: %.2f -> %s\n",
job_cost(j), conformity_cur, j->drv_path);
}

if (selected == NULL)
return -ESRCH;

if (evanix_opts.solver_report)
printf("✅ cost: %2d, conformity: %.2f <-> %s -> %s\n",
job_cost(selected), conformity_max, selected->name,
selected->drv_path);
*max_build -= job_cost(selected);
*job = selected;
return 0;
Expand Down

0 comments on commit 456460c

Please sign in to comment.