mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Derp, still need currentTime
This commit is contained in:
parent
6148583fb2
commit
1dfad57c6f
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue