diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-09 10:33:12 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-09 10:33:12 +1200 |
commit | 526ae13099da044a0feeb5afc07563bea0f29c7f (patch) | |
tree | 2790a460000993cc98a7da4be6d0312369f3014e /src/org/traccar | |
parent | 539cce7910b2fbf18ff4ea7e059abfae1dba0512 (diff) | |
download | traccar-server-526ae13099da044a0feeb5afc07563bea0f29c7f.tar.gz traccar-server-526ae13099da044a0feeb5afc07563bea0f29c7f.tar.bz2 traccar-server-526ae13099da044a0feeb5afc07563bea0f29c7f.zip |
Fix code style issue
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/events/FuelDropEventHandler.java | 3 |
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); |