Skip to content

Commit b027b5f

Browse files
authored
Merge pull request #469 from subspace/fix-farming-with-one-plot
Fix farming with one plot
2 parents cc41138 + d9cda60 commit b027b5f

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 > max_plot_size / 2 {
32+
if total_plot_size / max_plot_size == 0 || 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)