aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainEventHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 23:28:11 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 23:28:11 -0700
commit692a52be1c5b2c1f08d04f5eed1b73b31a9539e0 (patch)
tree128f48cb666bca89630847cfd446df9296698788 /src/main/java/org/traccar/MainEventHandler.java
parent47c35e66193d1dda4db5c326c9d39709aee3e2a6 (diff)
downloadtrackermap-server-692a52be1c5b2c1f08d04f5eed1b73b31a9539e0.tar.gz
trackermap-server-692a52be1c5b2c1f08d04f5eed1b73b31a9539e0.tar.bz2
trackermap-server-692a52be1c5b2c1f08d04f5eed1b73b31a9539e0.zip
Collect protocol statistics
Diffstat (limited to 'src/main/java/org/traccar/MainEventHandler.java')
-rw-r--r--src/main/java/org/traccar/MainEventHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/MainEventHandler.java b/src/main/java/org/traccar/MainEventHandler.java
index 2309b1e70..285f6f57c 100644
--- a/src/main/java/org/traccar/MainEventHandler.java
+++ b/src/main/java/org/traccar/MainEventHandler.java
@@ -109,7 +109,8 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
}
LOGGER.info(builder.toString());
- Main.getInjector().getInstance(StatisticsManager.class).registerMessageStored(position.getDeviceId());
+ Main.getInjector().getInstance(StatisticsManager.class)
+ .registerMessageStored(position.getDeviceId(), position.getProtocol());
}
}