Skip to content

Commit

Permalink
Bugfix: Fetch resource from total instead of available (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOIer authored Nov 12, 2024
1 parent 79c5e73 commit 4265602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ bool MinLoadFirst::CalculateRunningNodesAndStartTime_(

ResourceInNode feasible_res;
bool ok = task->requested_node_res_view.GetFeasibleResourceInNode(
craned_meta->res_avail, &feasible_res);
craned_meta->res_total, &feasible_res);
if (!ok) {
CRANE_DEBUG(
"Task #{} needs more resource than that of craned {}. "
Expand Down Expand Up @@ -2104,7 +2104,7 @@ bool MinLoadFirst::CalculateRunningNodesAndStartTime_(
ResourceInNode feasible_res;

bool ok = task->requested_node_res_view.GetFeasibleResourceInNode(
craned_meta->res_avail, &feasible_res);
craned_meta->res_total, &feasible_res);
if (!ok) {
CRANE_DEBUG(
"Task #{} needs more resource than that of craned {}. "
Expand Down

0 comments on commit 4265602

Please sign in to comment.