Skip to content

Commit

Permalink
[Gain computation] Fix check whether we should look at non-adjacent b…
Browse files Browse the repository at this point in the history
…locks
  • Loading branch information
larsgottesbueren committed Sep 29, 2023
1 parent 9bbc98b commit 96a5a2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class GainComputationBase {
}
}

if ( consider_non_adjacent_blocks && best_move.from == from ) {
if ( consider_non_adjacent_blocks && best_move.to == from ) {
// This is important for our rebalancer as the last fallback strategy
vec<PartitionID> non_adjacent_block;
for ( PartitionID to = 0; to < _context.partition.k; ++to ) {
Expand Down

0 comments on commit 96a5a2d

Please sign in to comment.