From e80945ec54515b11d9d6e7f41906eced6263e552 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Fri, 23 Nov 2018 10:49:33 +0100 Subject: [PATCH] Corrected condition to create more spares at rebuild time. --- src/space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/space.c b/src/space.c index dce5fff8fd..b924c4360e 100644 --- a/src/space.c +++ b/src/space.c @@ -862,7 +862,7 @@ void space_allocate_extras(struct space *s, int verbose) { /* Do we have enough space for the extra sparts (i.e. we haven't used up any) * ? */ - if (nr_sparts + expected_num_extra_sparts > size_sparts) { + if (nr_actual_sparts + expected_num_extra_sparts > nr_sparts) { /* Ok... need to put some more in the game */ -- GitLab