Add logic for delaying ticks to once every 5 seconds
This commit is contained in:
parent
0c694c3e78
commit
9aef10ee3f
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using ForgeCore.Assemble;
|
||||
using ForgeCoreAPI;
|
||||
using LibAC.Arguments;
|
||||
|
@ -70,6 +71,8 @@ public class ForgeCore
|
|||
|
||||
if(sessionData.TotalTasksPerTick == 0)
|
||||
sessionData.TotalTasksPerTick = tasksExecuted;
|
||||
|
||||
Thread.Sleep(TimeSpan.FromSeconds(5));
|
||||
}
|
||||
|
||||
Console.WriteLine("Preparing to shut down... Please wait...");
|
||||
|
@ -92,6 +95,7 @@ public class ForgeCore
|
|||
Console.WriteLine("> Plugin Storage saved.");
|
||||
Console.WriteLine("> Exiting server...");
|
||||
|
||||
Thread.Sleep(TimeSpan.FromSeconds(5));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ cd run
|
|||
chmod +x ForgeCore
|
||||
./ForgeCore --version
|
||||
./ForgeCore --help
|
||||
./ForgeCore --daemon
|
||||
time ./ForgeCore --daemon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue