Changed how timings is used.
This commit is contained in:
parent
fbea0e702b
commit
f8d8b75586
@ -97,11 +97,11 @@ public class LagMeter extends MiniPlugin
|
|||||||
|
|
||||||
_count++;
|
_count++;
|
||||||
|
|
||||||
if (System.currentTimeMillis() - _start > 60000)
|
if (System.currentTimeMillis() - _start > 30000)
|
||||||
{
|
{
|
||||||
if (_timingsRunning)
|
if (_timingsRunning)
|
||||||
{
|
{
|
||||||
if (_ticksPerSecond > 15 || System.currentTimeMillis() - _timingsStarted > 60000)
|
if (System.currentTimeMillis() - _timingsStarted > 30000)
|
||||||
{
|
{
|
||||||
getPlugin().getServer().dispatchCommand(Bukkit.getConsoleSender(), "timings paste");
|
getPlugin().getServer().dispatchCommand(Bukkit.getConsoleSender(), "timings paste");
|
||||||
_timingsRunning = false;
|
_timingsRunning = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user