Skip to content

Commit

Permalink
Add some comments about repackaging strategy
Browse files Browse the repository at this point in the history
Co-authored-by: Ahnaf Tahmid Chowdhury <[email protected]>
Signed-off-by: Katie Mummah <[email protected]>
  • Loading branch information
nuclearkatie and ahnaf-tahmid-chowdhury authored Mar 14, 2024
1 parent 3e853ed commit 75d9d1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/toolkit/res_manip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ double GetFillMass(Resource::Ptr r, Package::Ptr pkg) {
fill_mass = pkg->fill_max();
}
}
// Handle the scenario when there's leftover material that cannot be packaged
// due to not enough material for minimum fill, but more than one max filled package worth of material.
// In this case, fill one package up all the way and return the remaining to the buffer.
return fill_mass;
}

Expand Down

0 comments on commit 75d9d1c

Please sign in to comment.