Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Dec 21, 2024
1 parent d2e35f7 commit f1f8b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions taskvine/src/manager/vine_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -2699,15 +2699,15 @@ struct rmsummary *vine_manager_choose_resources_for_task(struct vine_manager *q,
if (limits->cores <= 0) {
limits->cores = limits->gpus <= 0 ? cores_available : 0;
}
if (limits->gpus <= 0) {
limits->gpus = limits->cores <= 0 ? gpus_available : 0;
}
if (limits->memory <= 0) {
limits->memory = memory_available;
}
if (limits->disk <= 0) {
limits->disk = disk_available;
}
if (limits->gpus <= 0) {
limits->gpus = limits->cores <= 0 ? gpus_available : 0;
}

/* Never go below min resources. */
rmsummary_merge_max(limits, min);
Expand Down

0 comments on commit f1f8b7d

Please sign in to comment.