aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post-refinement.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 8f7b9862..138e4cc9 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -477,6 +477,12 @@ void pr_refine(struct image *image, const RefList *full, const char *sym)
dev, nfound, nexp);
}
+ if ( (double)nfound/(double)nexp < 0.5 ) {
+ ERROR("Refusing to refine this image: %i out of %i found\n",
+ nfound, nexp);
+ return;
+ }
+
i = 0;
do {