aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-18 13:52:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-18 13:52:08 -0700
commit8ed8f8051b735a6f7c9480601e27339dbe8dab01 (patch)
treef3b53efe1a06211521aa2f4a3b2c7d4ecd1bbb2b
parent4d59dd0973479bca3d51cf3bba6b0769a0d671c3 (diff)
downloadtrackermap-server-8ed8f8051b735a6f7c9480601e27339dbe8dab01.tar.gz
trackermap-server-8ed8f8051b735a6f7c9480601e27339dbe8dab01.tar.bz2
trackermap-server-8ed8f8051b735a6f7c9480601e27339dbe8dab01.zip
Fix config defaults
-rw-r--r--src/main/java/org/traccar/config/Keys.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 6eb61607e..a03e47022 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -306,14 +306,16 @@ public final class Keys {
*/
public static final ConfigKey<Double> EVENT_FUEL_DROP_THRESHOLD = new DoubleConfigKey(
"fuelDropThreshold",
- List.of(KeyType.SERVER, KeyType.DEVICE));
+ List.of(KeyType.SERVER, KeyType.DEVICE),
+ 0.0);
/**
* Speed limit value in knots.
*/
public static final ConfigKey<Double> EVENT_OVERSPEED_LIMIT = new DoubleConfigKey(
"speedLimit",
- List.of(KeyType.SERVER, KeyType.DEVICE));
+ List.of(KeyType.SERVER, KeyType.DEVICE),
+ 0.0);
/**
* If true, the event is generated once at the beginning of overspeeding period.