aboutsummaryrefslogtreecommitdiff
path: root/src/templates.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-20 17:11:37 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:56 +0100
commita66b13709f0ce9a3fd9d4938344533555eb6c24c (patch)
tree149ae99315241d40c3ddbbdb35522ead85f8ec2f /src/templates.c
parent93e57e1aa3088a21c750ddef9fd4d6ae219097db (diff)
Fix progress bars
Diffstat (limited to 'src/templates.c')
-rw-r--r--src/templates.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates.c b/src/templates.c
index dbdfe21b..465da62c 100644
--- a/src/templates.c
+++ b/src/templates.c
@@ -172,7 +172,7 @@ IndexingPrivate *generate_templates(UnitCell *cell, const char *filename,
free(cell_rot);
}
- progress_bar(omega*1000.0, (omega_max-omega_step)*1000.0,
+ progress_bar(omega*1000.0, (omega_max-2.0*omega_step)*1000.0,
"Generating templates");
}
@@ -250,7 +250,7 @@ void match_templates(struct image *image, IndexingPrivate *ipriv)
}
}
- progress_bar(i, priv->n_templates, "Indexing");
+ progress_bar(i, priv->n_templates-1, "Indexing");
}
tot = 0.0;