aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 7efd26a5..a2e802d2 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -144,7 +144,7 @@ static void refine_all(struct image *images, int n_total_patterns,
qargs.images = images;
/* Don't have threads which are doing nothing */
- if ( n_total_patterns > nthreads ) nthreads = n_total_patterns;
+ if ( n_total_patterns < nthreads ) nthreads = n_total_patterns;
run_threads(nthreads, refine_image, get_image, done_image,
&qargs, n_total_patterns, 0, 0, 0);