diff options
author | Thomas White <taw@physics.org> | 2010-11-17 13:52:15 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:06 +0100 |
commit | 2f942f0a3096242ce5623cf5aae8d33253766bad (patch) | |
tree | ac41b2c22d5f46fb7bd4b8db31b0db788e84bf67 /src | |
parent | a4d0acc0059c55ed1c42ef8bf3f410897bede542 (diff) |
process_hkl: Finish progress bar properly when using --stop-after
Diffstat (limited to 'src')
-rw-r--r-- | src/process_hkl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index 2533102a..b1fcad51 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -472,7 +472,11 @@ static void merge_all(FILE *fh, double **pmodel, ReflItemList **pobserved, hist_i, devs, means, outfh); n_patterns++; - if ( n_patterns == config_stopafter ) break; + if ( n_patterns == config_stopafter ) { + progress_bar(n_total_patterns, n_total_patterns, + "Merging"); + break; + } progress_bar(n_patterns, n_total_patterns, "Merging"); /* Reset for the next pattern */ |