diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-11 20:34:34 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-11 20:34:34 -0700 |
commit | 42140ceae97b3da66a54b0b5480242adf0b4e23e (patch) | |
tree | e92668bad76cae73657c3a9c3caa8fe0000ba0b9 /src/main/java/org/traccar/session | |
parent | 767a449904b3d154ded4c5facefc73d7e33650f1 (diff) | |
download | trackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.tar.gz trackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.tar.bz2 trackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.zip |
Simplify timeout units
Diffstat (limited to 'src/main/java/org/traccar/session')
-rw-r--r-- | src/main/java/org/traccar/session/ConnectionManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/session/ConnectionManager.java b/src/main/java/org/traccar/session/ConnectionManager.java index ad02c591b..d4bb9b4b1 100644 --- a/src/main/java/org/traccar/session/ConnectionManager.java +++ b/src/main/java/org/traccar/session/ConnectionManager.java @@ -100,7 +100,7 @@ public class ConnectionManager implements BroadcastInterface { this.timer = timer; this.broadcastService = broadcastService; this.deviceLookupService = deviceLookupService; - deviceTimeout = config.getLong(Keys.STATUS_TIMEOUT) * 1000; + deviceTimeout = config.getLong(Keys.STATUS_TIMEOUT); updateDeviceState = config.getBoolean(Keys.STATUS_UPDATE_DEVICE_STATE); broadcastService.registerListener(this); } @@ -270,7 +270,7 @@ public class ConnectionManager implements BroadcastInterface { if (!timeout1.isCancelled()) { deviceUnknown(deviceId); } - }, deviceTimeout, TimeUnit.MILLISECONDS)); + }, deviceTimeout, TimeUnit.SECONDS)); } try { |