return MegaMek.commafy.format(used) + " kB";
return commafy.format(used) + " kB";
    public static String getMemoryUsed() {        long heap = Runtime.getRuntime().totalMemory();        long free = Runtime.getRuntime().freeMemory();        long used = (heap - free) / 1024;        return MegaMek.commafy.format(used) + " kB"; //$NON-NLS-1$    }