aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/peaks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 6f67255b..1b865bc8 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -335,6 +335,7 @@ static int integrate_peak(struct image *image, int cfs, int css,
}
if ( pk_counts == 0 ) return 11;
+ if ( pk_total == 0 ) return 13;
*pfs = ((double)fsct / pk_total) + 0.5;
*pss = ((double)ssct / pk_total) + 0.5;