mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Changed message for sketch memory usage.
This commit is contained in:
parent
cd7196c592
commit
74909a0060
@ -1633,16 +1633,21 @@ public class Sketch {
|
|||||||
|
|
||||||
long textSize = sizes[0];
|
long textSize = sizes[0];
|
||||||
long dataSize = sizes[1];
|
long dataSize = sizes[1];
|
||||||
|
System.out.println();
|
||||||
System.out.println(I18n
|
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));
|
textSize, maxTextSize, textSize * 100 / maxTextSize));
|
||||||
if (dataSize >= 0) {
|
if (dataSize >= 0) {
|
||||||
if (maxDataSize > 0) {
|
if (maxDataSize > 0) {
|
||||||
System.out.println(I18n.format(
|
System.out
|
||||||
_("Minimum Memory usage: {0} bytes (of a {1} byte maximum) - {2}%% used"),
|
.println(I18n
|
||||||
dataSize, maxDataSize, dataSize * 100 / maxDataSize));
|
.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 {
|
} 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user