Skip to content

Commit 62c3e19

Browse files
authored
Merge pull request #464 from subspace/farmer-drop-plot
Skip plot if it is too small
2 parents c5b44f4 + fc75a93 commit 62c3e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/subspace-farmer/src/multi_farming.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn get_plot_sizes(total_plot_size: u64, max_plot_size: u64) -> Vec<u64> {
2929

3030
let plot_sizes =
3131
std::iter::repeat(max_plot_size).take((total_plot_size / max_plot_size) as usize);
32-
if total_plot_size % max_plot_size > 0 {
32+
if total_plot_size % max_plot_size > max_plot_size / 2 {
3333
plot_sizes
3434
.chain(std::iter::once(total_plot_size % max_plot_size))
3535
.collect::<Vec<_>>()

0 commit comments

Comments
 (0)