Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Dec 19, 2024
1 parent 365de3c commit 9ebb422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taskvine/src/manager/vine_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int check_worker_have_enough_disk_with_inputs(struct vine_manager *q, struct vin

/* Check if the worker is fully occupied by other tasks, or the disk is full.
* @param w The worker info structure. */
static int worker_fully_occupied(struct vine_worker_info *w)
static int worker_has_available_resources(struct vine_worker_info *w)
{
if (w->resources->cores.total + w->resources->gpus.total >= w->resources->cores.inuse + w->resources->gpus.inuse) {
return 0;
Expand Down Expand Up @@ -198,7 +198,7 @@ int check_worker_against_task(struct vine_manager *q, struct vine_worker_info *w
}

/* if the worker has been fully occupied */
if (worker_fully_occupied(w)) {
if (!worker_has_available_resources(w)) {
return 0;
}

Expand Down

0 comments on commit 9ebb422

Please sign in to comment.