Tweak thresholds for can't keep up message

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-05-19 12:07:37 +10:00
parent 67a256943e
commit 98155b05fb

View file

@ -460,8 +460,12 @@
}
MinecraftServer.LOGGER.info("Saving worlds");
@@ -548,11 +748,13 @@
if (i > 2000L && this.nextTick - this.lastOverloadTime >= 15000L) {
@@ -545,14 +745,16 @@
while (this.isRunning) {
long i = SystemUtils.getMonotonicMillis() - this.nextTick;
- if (i > 2000L && this.nextTick - this.lastOverloadTime >= 15000L) {
+ if (i > 5000L && this.nextTick - this.lastOverloadTime >= 30000L) { // CraftBukkit
long j = i / 50L;
+ if (server.getWarnOnOverload()) // CraftBukkit