aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:33:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:33:12 +1200
commit526ae13099da044a0feeb5afc07563bea0f29c7f (patch)
tree2790a460000993cc98a7da4be6d0312369f3014e /src/org
parent539cce7910b2fbf18ff4ea7e059abfae1dba0512 (diff)
downloadtrackermap-server-526ae13099da044a0feeb5afc07563bea0f29c7f.tar.gz
trackermap-server-526ae13099da044a0feeb5afc07563bea0f29c7f.tar.bz2
trackermap-server-526ae13099da044a0feeb5afc07563bea0f29c7f.zip
Fix code style issue
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/events/FuelDropEventHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/events/FuelDropEventHandler.java b/src/org/traccar/events/FuelDropEventHandler.java
index a035d408f..e9a261aea 100644
--- a/src/org/traccar/events/FuelDropEventHandler.java
+++ b/src/org/traccar/events/FuelDropEventHandler.java
@@ -47,7 +47,8 @@ public class FuelDropEventHandler extends BaseEventHandler {
if (position.getAttributes().containsKey(Position.KEY_FUEL_LEVEL)
&& lastPosition != null && lastPosition.getAttributes().containsKey(Position.KEY_FUEL_LEVEL)) {
- double drop = lastPosition.getDouble(Position.KEY_FUEL_LEVEL) - position.getDouble(Position.KEY_FUEL_LEVEL);
+ double drop = lastPosition.getDouble(Position.KEY_FUEL_LEVEL)
+ - position.getDouble(Position.KEY_FUEL_LEVEL);
if (drop >= fuelDropThreshold) {
Event event = new Event(Event.TYPE_DEVICE_FUEL_DROP, position.getDeviceId(), position.getId());
event.set(ATTRIBUTE_FUEL_DROP_THRESHOLD, fuelDropThreshold);