Skip to content

Commit 74909a0

Browse files
committed
Changed message for sketch memory usage.
1 parent cd7196c commit 74909a0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

app/src/processing/app/Sketch.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,16 +1633,21 @@ protected void size(PreferencesMap prefs) throws RunnerException {
16331633

16341634
long textSize = sizes[0];
16351635
long dataSize = sizes[1];
1636+
System.out.println();
16361637
System.out.println(I18n
1637-
.format(_("Binary sketch size: {0} bytes (of a {1} byte maximum) - {2}%% used"),
1638+
.format(_("Sketch uses {0} bytes ({2}%%) of program storage space. Maximum is {1} bytes."),
16381639
textSize, maxTextSize, textSize * 100 / maxTextSize));
16391640
if (dataSize >= 0) {
16401641
if (maxDataSize > 0) {
1641-
System.out.println(I18n.format(
1642-
_("Minimum Memory usage: {0} bytes (of a {1} byte maximum) - {2}%% used"),
1643-
dataSize, maxDataSize, dataSize * 100 / maxDataSize));
1642+
System.out
1643+
.println(I18n
1644+
.format(
1645+
_("Global variables use {0} bytes ({2}%%) of dynamic memory, leaving {3} bytes for local variables. Maximum is {1} bytes."),
1646+
dataSize, maxDataSize, dataSize * 100 / maxDataSize,
1647+
maxDataSize - dataSize));
16441648
} else {
1645-
System.out.println(I18n.format(_("Minimum Memory usage: {0} bytes"), dataSize));
1649+
System.out.println(I18n
1650+
.format(_("Global variables use {0} bytes of dynamic memory."), dataSize));
16461651
}
16471652
}
16481653

0 commit comments

Comments
 (0)