diff options
author | snowleo <schneeleo@gmail.com> | 2013-04-23 08:55:02 +0300 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2013-04-23 08:55:02 +0300 |
commit | 97238b82ed24f75078a2c649d4fad9043f8fdd89 (patch) | |
tree | 9d57ecc96c0e03be78a494d0fdcef75bfcc5bcb6 | |
parent | 2d339a13077f8821b3c0b5efd67a7cee329913bb (diff) | |
download | Essentials-97238b82ed24f75078a2c649d4fad9043f8fdd89.tar Essentials-97238b82ed24f75078a2c649d4fad9043f8fdd89.tar.gz Essentials-97238b82ed24f75078a2c649d4fad9043f8fdd89.tar.lz Essentials-97238b82ed24f75078a2c649d4fad9043f8fdd89.tar.xz Essentials-97238b82ed24f75078a2c649d4fad9043f8fdd89.zip |
Derp, still need currentTime
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsTimer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsTimer.java b/Essentials/src/com/earth2me/essentials/EssentialsTimer.java index 941dc6482..38c42e918 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsTimer.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsTimer.java @@ -28,7 +28,7 @@ public class EssentialsTimer implements Runnable public void run() { final long startTime = System.nanoTime(); - //final long currentTime = System.currentTimeMillis(); + final long currentTime = System.currentTimeMillis(); long timeSpent = (startTime - lastPoll) / 1000; if (timeSpent == 0) { @@ -43,7 +43,7 @@ public class EssentialsTimer implements Runnable { history.add(tps); } - lastPoll = currentTime; + lastPoll = startTime; int count = 0; for (Player player : ess.getServer().getOnlinePlayers()) { |