aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-11 20:34:34 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-11 20:34:34 -0700
commit42140ceae97b3da66a54b0b5480242adf0b4e23e (patch)
treee92668bad76cae73657c3a9c3caa8fe0000ba0b9 /src/main/java/org/traccar
parent767a449904b3d154ded4c5facefc73d7e33650f1 (diff)
downloadtrackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.tar.gz
trackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.tar.bz2
trackermap-server-42140ceae97b3da66a54b0b5480242adf0b4e23e.zip
Simplify timeout units
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/session/ConnectionManager.java4
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 {