We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d37af5 commit 3c6b571Copy full SHA for 3c6b571
LavalinkServer/src/main/java/lavalink/server/io/StatsTask.java
@@ -90,7 +90,9 @@ private void sendStats() {
90
JSONObject cpu = new JSONObject();
91
cpu.put("cores", Runtime.getRuntime().availableProcessors());
92
cpu.put("systemLoad", hal.getProcessor().getSystemCpuLoad());
93
- cpu.put("lavalinkLoad", getProcessRecentCpuUsage());
+ double load = getProcessRecentCpuUsage();
94
+ if (!Double.isFinite(load)) load = 0;
95
+ cpu.put("lavalinkLoad", load);
96
97
out.put("cpu", cpu);
98
0 commit comments