mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-23 09:09:15 +00:00
Stop tracking cache hit ratios
This commit is contained in:
@@ -254,15 +254,6 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
configWatcher.checkModified();
|
||||
Iris.info("Hotloaded settings.json");
|
||||
}
|
||||
|
||||
int ev = CachedStream2D.evictions.get();
|
||||
if(IrisSettings.get().getGeneral().isDebug())
|
||||
{
|
||||
Iris.debug("Cache Hit Ratio: " + C.RED + Form.pc((double)CachedStream2D.cacheHits.get()/ (double)(CachedStream2D.cacheMisses.get() + CachedStream2D.cacheHits.get()), 2) + " " + C.LIGHT_PURPLE + " Evictions: " + C.AQUA + Form.f(ev/2) + "/s" + C.LIGHT_PURPLE + " Cache Size: " + C.RED + Form.f(CachedStream2D.cacheMisses.get() - CachedStream2D.evictions.get()));
|
||||
CachedStream2D.cacheMisses.addAndGet(-CachedStream2D.evictions.get());
|
||||
CachedStream2D.cacheHits.addAndGet(-CachedStream2D.evictions.get());
|
||||
CachedStream2D.evictions.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
public void onDisable() {
|
||||
|
||||
Reference in New Issue
Block a user