Fix avg tick times

This commit is contained in:
William Blake Galbreath
2020-02-17 20:26:12 -06:00
parent 5e068999e9
commit 0179d5196f
7 changed files with 77 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
From ae537506a49446a9f91e2fec2bfc636debe99fe4 Mon Sep 17 00:00:00 2001
From 4e1039edb300dd6fe96d0879f7e08d8a73f1f844 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <blake.galbreath@gmail.com>
Date: Tue, 23 Jul 2019 10:07:24 -0500
Subject: [PATCH] Implement lagging threshold
@@ -9,7 +9,7 @@ Subject: [PATCH] Implement lagging threshold
2 files changed, 16 insertions(+)
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
index 451dc570..7bdd962b 100644
index a2cf8e29b..220cc96c0 100644
--- a/src/main/java/org/bukkit/Bukkit.java
+++ b/src/main/java/org/bukkit/Bukkit.java
@@ -1631,6 +1631,15 @@ public final class Bukkit {
@@ -26,10 +26,10 @@ index 451dc570..7bdd962b 100644
+ }
+
/**
* Get the last 100 tick times (in nanos)
* @return Last 100 tick times (in nanos)
* Get a sample of the servers last tick times (in nanos)
*
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index 57bb2dde..ca195120 100644
index 92df8f8cd..3714f2f55 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -1422,6 +1422,13 @@ public interface Server extends PluginMessageRecipient {
@@ -44,7 +44,7 @@ index 57bb2dde..ca195120 100644
+ boolean isLagging();
+
/**
* Get the last 100 tick times (in nanos)
* Get a sample of the servers last tick times (in nanos)
*
--
2.24.0