aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-08 10:57:26 +0100
committerThomas White <taw@physics.org>2010-02-08 10:57:26 +0100
commit8e290108689f653a39dcd8769d7556652aee7dcd (patch)
treed90f7646cbb4d16ff9e158d14320ffb6016612b2 /src
parent687eed4650e74a86f45cd533dd94a0a2ace1d1e8 (diff)
Stop after the right number (fix iteration counting again)
Diffstat (limited to 'src')
-rw-r--r--src/pattern_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 5fd71fc1..d0aad29b 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -307,7 +307,7 @@ int main(int argc, char *argv[])
ndone++;
- if ( n_images && (ndone > n_images) ) done = 1;
+ if ( n_images && (ndone >= n_images) ) done = 1;
} while ( !done );