fix server startup time measurement
This commit is contained in:
parent
5066ddf9af
commit
9a6c41661b
1 changed files with 4 additions and 4 deletions
|
@ -150,8 +150,10 @@ public final class Server implements IThreadListener {
|
|||
private int perfTimer;
|
||||
|
||||
public static void main(String[] args) {
|
||||
long time = System.currentTimeMillis();
|
||||
Util.checkOs();
|
||||
Registry.setup("Server thread");
|
||||
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
||||
GenBiome.setAsProvider();
|
||||
UniverseRegistry.register();
|
||||
RotationRegistry.register();
|
||||
|
@ -164,7 +166,7 @@ public final class Server implements IThreadListener {
|
|||
server.stopServer();
|
||||
}
|
||||
});
|
||||
server.run(port);
|
||||
server.run(time, port);
|
||||
Region.killIO();
|
||||
Log.flushLog();
|
||||
}
|
||||
|
@ -432,9 +434,7 @@ public final class Server implements IThreadListener {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void run(int port) {
|
||||
long time = System.currentTimeMillis();
|
||||
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
||||
public void run(long time, int port) {
|
||||
if(!this.debug) {
|
||||
Converter.convert();
|
||||
long wtime = loadServerConfig();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue