diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-28 11:06:25 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-28 11:06:25 -0800 |
commit | f54ec00be2611c274e442cd6b2fd5ccdcf433ae5 (patch) | |
tree | 5387cd15a36187d6a739aae47ddd51e4721c8a2a /src/main/java/org/traccar/Context.java | |
parent | 04cd9f4d14111b6d568a8ddd7e5501873276b339 (diff) | |
download | trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.tar.gz trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.tar.bz2 trackermap-server-f54ec00be2611c274e442cd6b2fd5ccdcf433ae5.zip |
Migrate more config keys
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r-- | src/main/java/org/traccar/Context.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java index 2fb6998b8..340cdb6a5 100644 --- a/src/main/java/org/traccar/Context.java +++ b/src/main/java/org/traccar/Context.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -257,8 +257,8 @@ public final class Context { config.getLong("report.trip.minimalParkingDuration", 300) * 1000, config.getLong("report.trip.minimalNoDataDuration", 3600) * 1000, config.getBoolean("report.trip.useIgnition"), - config.getBoolean("event.motion.processInvalidPositions"), - config.getDouble("event.motion.speedThreshold", 0.01)); + config.getBoolean(Keys.EVENT_MOTION_PROCESS_INVALID_POSITIONS), + config.getDouble(Keys.EVENT_MOTION_SPEED_THRESHOLD, 0.01)); } private static class ObjectMapperContextResolver implements ContextResolver<ObjectMapper> { |