Made startup completion time actually be reported in seconds. Again.

This commit is contained in:
EvilSeph 2011-12-27 20:10:49 -05:00
parent 8b21a0eeef
commit 8b735bf47a

View file

@ -164,11 +164,11 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
log.info("Preparing level \"" + s + "\""); log.info("Preparing level \"" + s + "\"");
this.a(new WorldLoaderServer(new File(".")), s, j); this.a(new WorldLoaderServer(new File(".")), s, j);
// CraftBukkit start // CraftBukkit start - display seconds for the completion time
long elapsed = System.nanoTime() - i; long elapsed = System.nanoTime() - i;
String time = String.format("%.3fs", elapsed / 10000000000.0D); String time = String.format("%.3fs", elapsed / 1000000000.0D);
log.info("Done (" + time + ")! For help, type \"help\" or \"?\""); log.info("Done (" + time + ")! For help, type \"help\" or \"?\"");
// CratBukkit end // CraftBukkit end
if (this.propertyManager.getBoolean("enable-query", false)) { if (this.propertyManager.getBoolean("enable-query", false)) {
log.info("Starting GS4 status listener"); log.info("Starting GS4 status listener");