From 74909a006083880765612a7e862d5317b51604ea Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 9 Sep 2013 17:49:10 +0200 Subject: [PATCH] Changed message for sketch memory usage. --- app/src/processing/app/Sketch.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index 2fead5b88..4049e14f6 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -1633,16 +1633,21 @@ public class Sketch { long textSize = sizes[0]; long dataSize = sizes[1]; + System.out.println(); System.out.println(I18n - .format(_("Binary sketch size: {0} bytes (of a {1} byte maximum) - {2}%% used"), + .format(_("Sketch uses {0} bytes ({2}%%) of program storage space. Maximum is {1} bytes."), textSize, maxTextSize, textSize * 100 / maxTextSize)); if (dataSize >= 0) { if (maxDataSize > 0) { - System.out.println(I18n.format( - _("Minimum Memory usage: {0} bytes (of a {1} byte maximum) - {2}%% used"), - dataSize, maxDataSize, dataSize * 100 / maxDataSize)); + System.out + .println(I18n + .format( + _("Global variables use {0} bytes ({2}%%) of dynamic memory, leaving {3} bytes for local variables. Maximum is {1} bytes."), + dataSize, maxDataSize, dataSize * 100 / maxDataSize, + maxDataSize - dataSize)); } else { - System.out.println(I18n.format(_("Minimum Memory usage: {0} bytes"), dataSize)); + System.out.println(I18n + .format(_("Global variables use {0} bytes of dynamic memory."), dataSize)); } }