aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-04 19:50:32 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-04 19:50:32 -0700
commit5d131bdb8f9a49d5da508eb5073d21014f7185a2 (patch)
treecb15e3bf50d90190edc5b87440e0b5187baed75d /src/main/java
parentc2993f0451749f3b127aa64892eb3db60360a4b6 (diff)
downloadtrackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.tar.gz
trackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.tar.bz2
trackermap-server-5d131bdb8f9a49d5da508eb5073d21014f7185a2.zip
Fix stored message count
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/handler/DatabaseHandler.java2
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);
}