diff options
author | Anton Tananaev <anton@traccar.org> | 2024-05-04 19:50:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-05-04 19:50:32 -0700 |
commit | 5d131bdb8f9a49d5da508eb5073d21014f7185a2 (patch) | |
tree | cb15e3bf50d90190edc5b87440e0b5187baed75d /src/main | |
parent | c2993f0451749f3b127aa64892eb3db60360a4b6 (diff) | |
download | trackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.tar.gz trackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.tar.bz2 trackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.zip |
Fix stored message count
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/handler/DatabaseHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/DatabaseHandler.java b/src/main/java/org/traccar/handler/DatabaseHandler.java index 5d96ebb34..4619e9d34 100644 --- a/src/main/java/org/traccar/handler/DatabaseHandler.java +++ b/src/main/java/org/traccar/handler/DatabaseHandler.java @@ -42,7 +42,7 @@ public class DatabaseHandler extends BasePositionHandler { try { position.setId(storage.addObject(position, new Request(new Columns.Exclude("id")))); - statisticsManager.messageStoredCount(position.getDeviceId()); + statisticsManager.registerMessageStored(position.getDeviceId(), position.getProtocol()); } catch (Exception error) { LOGGER.warn("Failed to store position", error); } |