diff options
author | soshial <soshial@gmail.com> | 2021-09-18 21:15:24 +0200 |
---|---|---|
committer | soshial <soshial@gmail.com> | 2021-09-18 21:15:24 +0200 |
commit | c345945c36b4c93f2f436cf61f89495577d072ea (patch) | |
tree | 4c6e70c7c6f49fa8ee88d3cc6c0e3f96e3cdc643 /src/main/java/org/traccar/handler | |
parent | a6ccfd679686cfb62f8390334229ba7fdf92eb42 (diff) | |
download | trackermap-server-c345945c36b4c93f2f436cf61f89495577d072ea.tar.gz trackermap-server-c345945c36b4c93f2f436cf61f89495577d072ea.tar.bz2 trackermap-server-c345945c36b4c93f2f436cf61f89495577d072ea.zip |
improve SQL query
Diffstat (limited to 'src/main/java/org/traccar/handler')
-rw-r--r-- | src/main/java/org/traccar/handler/FilterHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/FilterHandler.java b/src/main/java/org/traccar/handler/FilterHandler.java index 6331ff773..19d72d8a1 100644 --- a/src/main/java/org/traccar/handler/FilterHandler.java +++ b/src/main/java/org/traccar/handler/FilterHandler.java @@ -74,7 +74,7 @@ public class FilterHandler extends BaseDataHandler { } private boolean filterDuplicate(Position position, Position last) { - if (filterDuplicate && last != null && position.getFixTime().equals(last.getFixTime())) { + if (filterDuplicate && last != null && position.getFixTime().getTime() == last.getFixTime().getTime()) { for (String key : position.getAttributes().keySet()) { if (!last.getAttributes().containsKey(key)) { return false; |