Derp, still need currentTime

This commit is contained in:
snowleo 2013-04-23 08:55:02 +03:00
parent 6148583fb2
commit 1dfad57c6f

View file

@ -28,7 +28,7 @@ public class EssentialsTimer implements Runnable
public void run() public void run()
{ {
final long startTime = System.nanoTime(); final long startTime = System.nanoTime();
//final long currentTime = System.currentTimeMillis(); final long currentTime = System.currentTimeMillis();
long timeSpent = (startTime - lastPoll) / 1000; long timeSpent = (startTime - lastPoll) / 1000;
if (timeSpent == 0) if (timeSpent == 0)
{ {
@ -43,7 +43,7 @@ public class EssentialsTimer implements Runnable
{ {
history.add(tps); history.add(tps);
} }
lastPoll = currentTime; lastPoll = startTime;
int count = 0; int count = 0;
for (Player player : ess.getServer().getOnlinePlayers()) for (Player player : ess.getServer().getOnlinePlayers())
{ {