diff options
author | Nassim Jahnke <[email protected]> | 2024-07-19 13:38:43 +0200 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-07-19 13:38:43 +0200 |
commit | 7ea403902b81e15ec54a93972d337c4531a56b1e (patch) | |
tree | dc9c72b4e5127dc1903e9a03a030238698a9df69 | |
parent | 75af62b298eb70f535486df3343a1a333a60a002 (diff) | |
download | Paper-7ea403902b81e15ec54a93972d337c4531a56b1e.tar.gz Paper-7ea403902b81e15ec54a93972d337c4531a56b1e.zip |
Fixup startup time log message
-rw-r--r-- | patches/server/1023-Improved-Watchdog-Support.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1023-Improved-Watchdog-Support.patch b/patches/server/1023-Improved-Watchdog-Support.patch index 70732335bd..ea0bd9226f 100644 --- a/patches/server/1023-Improved-Watchdog-Support.patch +++ b/patches/server/1023-Improved-Watchdog-Support.patch @@ -71,7 +71,7 @@ index 589a8bf75be6ccc59f1e5dd5d8d9afed41c4772d..b24265573fdef5d9a964bcd76146f345 cause = cause.getCause(); } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index fb3dcce4e1888f96fdd260740d9d955962d879fc..36e16726d62d378dd55a1d52cc2680532dd36316 100644 +index fb3dcce4e1888f96fdd260740d9d955962d879fc..939c14e7361770732ad51868e76c968012fc4774 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -307,7 +307,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa @@ -151,7 +151,7 @@ index fb3dcce4e1888f96fdd260740d9d955962d879fc..36e16726d62d378dd55a1d52cc268053 + // tasks are default scheduled at -1 + delay, and first tick will tick at 1 + String doneTime = String.format(java.util.Locale.ROOT, "%.3fs", (double) (Util.getNanos() - serverStartTime) / 1.0E9D); + final long actualDoneTimeMs = System.currentTimeMillis() - org.bukkit.craftbukkit.Main.BOOT_TIME.toEpochMilli(); // Paper - Add total time -+ LOGGER.info("Done (world loading: {}, total: {})! For help, type \"help\"", doneTime, String.format("%.3fs", actualDoneTimeMs / 1000.00D)); // Paper - Add total time ++ LOGGER.info("Done (tick thread startup: {}, total: {})! For help, type \"help\"", doneTime, String.format(java.util.Locale.ROOT, "%.3fs", actualDoneTimeMs / 1000.00D)); // Paper - Add total time + // Paper end + + org.spigotmc.WatchdogThread.tick(); // Paper |