From 57052d7f58148db7ff2121c8a8d35e88db3b7ddc Mon Sep 17 00:00:00 2001 From: xGinko Date: Wed, 17 Jan 2024 16:04:27 +0100 Subject: [PATCH] get tick report of last 5s instead of last 15 --- .../me/moomoo/anarchyexploitfixes/utils/models/TPSCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/models/TPSCache.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/models/TPSCache.java index b301172b5..a8eedca37 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/models/TPSCache.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/models/TPSCache.java @@ -82,7 +82,7 @@ public double getGlobalTPS() { Double tps = this.cached_tps.getIfPresent(regionHandle); if (tps == null) { // If nothing is cached yet, get tps and add to cache - tps = regionHandle.getTickReport15s(System.nanoTime()).tpsData().segmentAll().average(); + tps = regionHandle.getTickReport5s(System.nanoTime()).tpsData().segmentAll().average(); this.cached_tps.put(regionHandle, tps); } return tps; @@ -117,7 +117,7 @@ public double getTPS(World world, int chunkX, int chunkZ) { Double tps = this.cached_tps.getIfPresent(regionHandle); if (tps == null) { // If nothing is cached yet, get tps and add to cache - tps = regionHandle.getTickReport15s(System.nanoTime()).tpsData().segmentAll().average(); + tps = regionHandle.getTickReport5s(System.nanoTime()).tpsData().segmentAll().average(); this.cached_tps.put(regionHandle, tps); } atomic_tps.set(tps);