summaryrefslogtreecommitdiffstats
path: root/core/deco.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/deco.c')
-rw-r--r--core/deco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/deco.c b/core/deco.c
index 57acfe951..a445c2539 100644
--- a/core/deco.c
+++ b/core/deco.c
@@ -657,7 +657,7 @@ double get_gf(double ambpressure_bar, const struct dive *dive)
double regressiona()
{
- if (sum1) {
+ if (sum1 > 1) {
double avxy = sumxy / sum1;
double avx = (double)sumx / sum1;
double avy = sumy / sum1;