diff --git a/LavalinkServer/src/main/java/lavalink/server/io/StatsTask.java b/LavalinkServer/src/main/java/lavalink/server/io/StatsTask.java index a9237893f..cdb9c7f87 100644 --- a/LavalinkServer/src/main/java/lavalink/server/io/StatsTask.java +++ b/LavalinkServer/src/main/java/lavalink/server/io/StatsTask.java @@ -90,7 +90,9 @@ private void sendStats() { JSONObject cpu = new JSONObject(); cpu.put("cores", Runtime.getRuntime().availableProcessors()); cpu.put("systemLoad", hal.getProcessor().getSystemCpuLoad()); - cpu.put("lavalinkLoad", getProcessRecentCpuUsage()); + double load = getProcessRecentCpuUsage(); + if (!Double.isFinite(load)) load = 0; + cpu.put("lavalinkLoad", load); out.put("cpu", cpu);