From fc75a9350c448cbbacc4fa0829860bcd01a718b2 Mon Sep 17 00:00:00 2001 From: i1i1 Date: Tue, 17 May 2022 22:43:01 +0300 Subject: [PATCH] Do not start plot if it is too small --- crates/subspace-farmer/src/multi_farming.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/subspace-farmer/src/multi_farming.rs b/crates/subspace-farmer/src/multi_farming.rs index 1fd90a8409..a432d6e076 100644 --- a/crates/subspace-farmer/src/multi_farming.rs +++ b/crates/subspace-farmer/src/multi_farming.rs @@ -28,7 +28,7 @@ fn get_plot_sizes(total_plot_size: u64, max_plot_size: u64) -> Vec { 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::>()