aboutsummaryrefslogtreecommitdiff
path: root/src/fit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fit.c')
-rw-r--r--src/fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fit.c b/src/fit.c
index a8af643..8b17062 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -128,7 +128,7 @@ int fit_event(event *ev, double *xopt, double *fmin)
do {
*fmin = fval;
rv = nlopt_optimize(opt,x,&fval);
- } while (fabs(fval-*fmin) > 1e-9);
+ } while (fabs(fval-*fmin) > 1e-5);
memcpy(xopt,x,sizeof(x));