summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bftw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bftw.c b/src/bftw.c
index 400307b..ab930f1 100644
--- a/src/bftw.c
+++ b/src/bftw.c
@@ -802,8 +802,7 @@ static int bftw_state_init(struct bftw_state *state, const struct bftw_args *arg
}
if (state->flags & BFTW_SORT) {
qflags |= BFTW_QORDER;
- }
- if (nthreads == 1) {
+ } else if (nthreads == 1) {
qflags |= BFTW_QBALANCE;
}
bftw_queue_init(&state->fileq, qflags);