"grabage struct"

This commit is contained in:
Anuken
2020-05-09 16:29:01 -04:00
parent bc658f9f45
commit f0d2f7b728
6 changed files with 10 additions and 12 deletions

View File

@@ -822,7 +822,7 @@ public class ServerControl implements ApplicationListener{
}
});
handler.register("gc", "Trigger a grabage struct. Testing only.", arg -> {
handler.register("gc", "Trigger a garbage collection. Testing only.", arg -> {
int pre = (int)(Core.app.getJavaHeap() / 1024 / 1024);
System.gc();
int post = (int)(Core.app.getJavaHeap() / 1024 / 1024);