summaryrefslogtreecommitdiffstats
path: root/subsurface-core/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-14 09:10:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-14 09:10:06 -0800
commit76d07635270bb3068b7d9a559b481d3c094f0d7b (patch)
treecd507fe34e03b8c5cc2c10e9d991a50f44635d9e /subsurface-core/subsurfacestartup.c
parent24404a401d5a21134b153000fffc74bd429a0631 (diff)
downloadsubsurface-76d07635270bb3068b7d9a559b481d3c094f0d7b.tar.gz
Location service: make distance and time threshold configurable
Right now the distance is always in meters, the mobile app doesn't deal with units at all, anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurfacestartup.c')
-rw-r--r--subsurface-core/subsurfacestartup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsurface-core/subsurfacestartup.c b/subsurface-core/subsurfacestartup.c
index 13cbbfa3f..5b3dfa8c1 100644
--- a/subsurface-core/subsurfacestartup.c
+++ b/subsurface-core/subsurfacestartup.c
@@ -79,7 +79,9 @@ struct preferences default_prefs = {
.category = { 0 }
},
.deco_mode = BUEHLMANN,
- .conservatism_level = 3
+ .conservatism_level = 3,
+ .distance_threshold = 1000,
+ .time_threshold = 600
};
int run_survey;