Skip to content

Commit fc75a93

Browse files
committed
Do not start plot if it is too small
1 parent 3167c63 commit fc75a93

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
@@ -28,7 +28,7 @@ fn get_plot_sizes(total_plot_size: u64, max_plot_size: u64) -> Vec<u64> {
2828

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

0 commit comments

Comments
 (0)