Reduce overload check interval
A too low interval seems likely to crash the server.
This commit is contained in:
parent
401a290c68
commit
285f9f7f73
@ -185,7 +185,7 @@ public abstract class MinecraftServerMixin extends RecursiveEventLoop<TickDelaye
|
|||||||
|
|
||||||
while (this.serverRunning) {
|
while (this.serverRunning) {
|
||||||
long i = (curTime = Util.milliTime()) - this.serverTime;
|
long i = (curTime = Util.milliTime()) - this.serverTime;
|
||||||
if (i > 5000L && this.serverTime - this.timeOfLastWarning >= 30000L) {
|
if (i > 2000L && this.serverTime - this.timeOfLastWarning >= 15000L) {
|
||||||
long j = i / 50L;
|
long j = i / 50L;
|
||||||
|
|
||||||
if (server.getWarnOnOverload()) {
|
if (server.getWarnOnOverload()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user