diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-24 11:46:28 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-24 11:46:28 +0500 |
commit | 1424c2048346206f750bd68232ba6e2cbe1545e9 (patch) | |
tree | c708c8f12342c33070d5f8ee0fe0a31034aa2664 /src/org/traccar/events/MaintenanceEventHandler.java | |
parent | 7113cff737831d239d30edea7d0661ad89499198 (diff) | |
download | trackermap-server-1424c2048346206f750bd68232ba6e2cbe1545e9.tar.gz trackermap-server-1424c2048346206f750bd68232ba6e2cbe1545e9.tar.bz2 trackermap-server-1424c2048346206f750bd68232ba6e2cbe1545e9.zip |
- Invert variable meaning
- Style fixes
Diffstat (limited to 'src/org/traccar/events/MaintenanceEventHandler.java')
-rw-r--r-- | src/org/traccar/events/MaintenanceEventHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/events/MaintenanceEventHandler.java b/src/org/traccar/events/MaintenanceEventHandler.java index 9cc4a1aeb..5a36a74d1 100644 --- a/src/org/traccar/events/MaintenanceEventHandler.java +++ b/src/org/traccar/events/MaintenanceEventHandler.java @@ -38,12 +38,12 @@ public class MaintenanceEventHandler extends BaseEventHandler { } double maintenanceInterval = Context.getDeviceManager() - .lookupAttributeDouble(device.getId(), ATTRIBUTE_MAINTENANCE_INTERVAL, 0, true); + .lookupAttributeDouble(device.getId(), ATTRIBUTE_MAINTENANCE_INTERVAL, 0, false); if (maintenanceInterval == 0) { return null; } double maintenanceStart = Context.getDeviceManager() - .lookupAttributeDouble(device.getId(), ATTRIBUTE_MAINTENANCE_START, 0, true); + .lookupAttributeDouble(device.getId(), ATTRIBUTE_MAINTENANCE_START, 0, false); Collection<Event> events = new ArrayList<>(); double oldTotalDistance = 0.0; |