Corrected the output of /gc

It's now max, total and free
This commit is contained in:
snowleo 2011-06-26 12:16:50 +02:00
parent fb834bf104
commit 512a1b9183
7 changed files with 14 additions and 7 deletions

View File

@ -18,7 +18,8 @@ public class Commandgc extends EssentialsCommand
{ {
charge(sender); charge(sender);
sender.sendMessage(Util.format("gcmax", (Runtime.getRuntime().maxMemory() / 1024 / 1024))); sender.sendMessage(Util.format("gcmax", (Runtime.getRuntime().maxMemory() / 1024 / 1024)));
sender.sendMessage(Util.format("gcmin", (Runtime.getRuntime().freeMemory() / 1024 / 1024))); sender.sendMessage(Util.format("gcfree", (Runtime.getRuntime().freeMemory() / 1024 / 1024)));
sender.sendMessage(Util.format("gctotal", (Runtime.getRuntime().totalMemory() / 1024 / 1024)));
for (World w : server.getWorlds()) for (World w : server.getWorlds())
{ {
sender.sendMessage( sender.sendMessage(

View File

@ -75,7 +75,8 @@ freedMemory = Freed {0} MB.
gcchunks = chunks, gcchunks = chunks,
gcentities = entities gcentities = entities
gcmax = Maximum memory: {0} MB gcmax = Maximum memory: {0} MB
gcmin = Minimum memory: {0} MB gcfree = Free memory: {0} MB
gctotal = Allocated memory: {0} MB
generatingPortal = \u00a77Generating an exit portal. generatingPortal = \u00a77Generating an exit portal.
geoIpUrlEmpty = GeoIP download url is empty. geoIpUrlEmpty = GeoIP download url is empty.
geoIpUrlInvalid = GeoIP download url is invalid. geoIpUrlInvalid = GeoIP download url is invalid.

View File

@ -77,7 +77,8 @@ freedMemory = Befriede {0} MB.
gcchunks = stykker, gcchunks = stykker,
gcentities = enheder gcentities = enheder
gcmax = Maximum memory: {0} MB gcmax = Maximum memory: {0} MB
gcmin = Minimum memory: {0} MB gcfree = Free memory: {0} MB
gctotal = Allocated memory: {0} MB
generatingPortal = \u00a77Genererer en udgangs portal. generatingPortal = \u00a77Genererer en udgangs portal.
geoIpUrlEmpty = GeoIP download url er tom. geoIpUrlEmpty = GeoIP download url er tom.
geoIpUrlInvalid = GeoIP download url er ugyldig. geoIpUrlInvalid = GeoIP download url er ugyldig.

View File

@ -75,7 +75,8 @@ freedMemory = {0} MB frei gemacht.
gcchunks = Chunks, gcchunks = Chunks,
gcentities = Einheiten gcentities = Einheiten
gcmax = Maximaler Speicher: {0} MB gcmax = Maximaler Speicher: {0} MB
gcmin = Minimaler Speicher: {0} MB gcfree = Freier Speicher: {0} MB
gctotal = Reservierter Speicher: {0} MB
generatingPortal = \u00a77Erstelle ein Ausgangsportal. generatingPortal = \u00a77Erstelle ein Ausgangsportal.
geoIpUrlEmpty = GeoIP Download-URL ist leer. geoIpUrlEmpty = GeoIP Download-URL ist leer.
geoIpUrlInvalid = GeoIP Download-URL ist ung\u00fcltig. geoIpUrlInvalid = GeoIP Download-URL ist ung\u00fcltig.

View File

@ -75,7 +75,8 @@ freedMemory = Freed {0} MB.
gcchunks = chunks, gcchunks = chunks,
gcentities = entities gcentities = entities
gcmax = Maximum memory: {0} MB gcmax = Maximum memory: {0} MB
gcmin = Minimum memory: {0} MB gcfree = Free memory: {0} MB
gctotal = Allocated memory: {0} MB
generatingPortal = \u00a77Generating an exit portal. generatingPortal = \u00a77Generating an exit portal.
geoIpUrlEmpty = GeoIP download url is empty. geoIpUrlEmpty = GeoIP download url is empty.
geoIpUrlInvalid = GeoIP download url is invalid. geoIpUrlInvalid = GeoIP download url is invalid.

View File

@ -75,7 +75,8 @@ freedMemory = A lib\u00e9r\u00e9 {0} Mo.
gcchunks = chunks, gcchunks = chunks,
gcentities = entit\u00e9s gcentities = entit\u00e9s
gcmax = M\u00e9moire maximale: {0} Mo gcmax = M\u00e9moire maximale: {0} Mo
gcmin = M\u00e9moire minimale: {0} Mo gcfree = Free memory: {0} Mo
gctotal = Allocated memory: {0} Mo
generatingPortal = \u00a77G\u00e9n\u00e9ration d''un portail de sortie. generatingPortal = \u00a77G\u00e9n\u00e9ration d''un portail de sortie.
geoIpUrlEmpty = L''url de t\u00e9l\u00e9chargement de GeoIP est vide. geoIpUrlEmpty = L''url de t\u00e9l\u00e9chargement de GeoIP est vide.
geoIpUrlInvalid = L''url de t\u00e9l\u00e9chargement de GeoIP est invalide. geoIpUrlInvalid = L''url de t\u00e9l\u00e9chargement de GeoIP est invalide.

View File

@ -76,7 +76,8 @@ freedMemory = {0} MB gelost.
gcchunks = chunks, gcchunks = chunks,
gcentities = entities gcentities = entities
gcmax = Maximaal geheugen: {0} MB gcmax = Maximaal geheugen: {0} MB
gcmin = Minimaal geheugen: {0} MB gcfree = Free memory: {0} MB
gctotal = Allocated memory: {0} MB
generatingPortal = \u00a77Uitgangs portal aan het cre\u00ebren. generatingPortal = \u00a77Uitgangs portal aan het cre\u00ebren.
geoIpUrlEmpty = GeoIP download url is leeg. geoIpUrlEmpty = GeoIP download url is leeg.
geoIpUrlInvalid = GeoIP download url is ongeldig. geoIpUrlInvalid = GeoIP download url is ongeldig.