Fixed offline-time not working (because it was miliseconds instead of seconds)

This commit is contained in:
ajgeiss0702
2023-01-14 10:24:57 -07:00
parent bf9b766da3
commit 042e2f4a43
2 changed files with 2 additions and 2 deletions
@@ -75,7 +75,7 @@ public class BungeeServer implements AdaptedServer {
private void markOffline(boolean debug, QueueLogger logger, CompletableFuture<AdaptedServerPing> future, long sent, @Nullable Throwable e) {
long lastOnline = lastSuccessfullPing == null ? 0 : lastSuccessfullPing.getFetchedTime();
offlineTime = (int) Math.min(sent - lastOnline, Integer.MAX_VALUE);
offlineTime = (int) Math.min(sent - lastOnline, Integer.MAX_VALUE) / 1000;
lastOffline = sent;