From 53bcb5c788e6b24bf8f6f631445b61a87c5f715f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 25 Sep 2016 14:51:16 +1300 Subject: Implement server statistics collection --- src/org/traccar/DeviceSession.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/org/traccar/DeviceSession.java') diff --git a/src/org/traccar/DeviceSession.java b/src/org/traccar/DeviceSession.java index 5e2686f23..45bc5dcde 100644 --- a/src/org/traccar/DeviceSession.java +++ b/src/org/traccar/DeviceSession.java @@ -21,6 +21,9 @@ public class DeviceSession { public DeviceSession(long deviceId) { this.deviceId = deviceId; + if (Context.getStatisticsManager() != null) { + Context.getStatisticsManager().registerDevice(deviceId); + } } public long getDeviceId() { -- cgit v1.2.3