Skip to content

Commit

Permalink
Merge pull request #464 from subspace/farmer-drop-plot
Browse files Browse the repository at this point in the history
Skip plot if it is too small
  • Loading branch information
nazar-pc authored May 18, 2022
2 parents c5b44f4 + fc75a93 commit 62c3e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/subspace-farmer/src/multi_farming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn get_plot_sizes(total_plot_size: u64, max_plot_size: u64) -> Vec<u64> {

let plot_sizes =
std::iter::repeat(max_plot_size).take((total_plot_size / max_plot_size) as usize);
if total_plot_size % max_plot_size > 0 {
if total_plot_size % max_plot_size > max_plot_size / 2 {
plot_sizes
.chain(std::iter::once(total_plot_size % max_plot_size))
.collect::<Vec<_>>()
Expand Down

0 comments on commit 62c3e19

Please sign in to comment.