Commit dd2f61f0 authored by Thomas White's avatar Thomas White
Browse files

Count properly

parent 65d8b1ac
......@@ -143,8 +143,11 @@ static void refine_all(struct image *images, int n_total_patterns,
qargs.n_total_patterns = n_total_patterns;
qargs.images = images;
/* Don't have threads which are doing nothing */
if ( n_total_patterns > nthreads ) nthreads = n_total_patterns;
run_threads(nthreads, refine_image, get_image, done_image,
&qargs, n_total_patterns-1, 0, 0, 0);
&qargs, n_total_patterns, 0, 0, 0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment