Skip to content

Commit 85d1b50

Browse files
AustinSaintAubinFederico Fissore
authored and
Federico Fissore
committed
merging #91
1 parent 739ab8c commit 85d1b50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/processing/app/Sketch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ public void setCompilingProgress(int percent) {
16301630
editor.status.progressUpdate(percent);
16311631
}
16321632

1633-
1633+
16341634
protected void size(PreferencesMap prefs) throws RunnerException {
16351635
long size = 0;
16361636
String maxsizeString = prefs.get("upload.maximum_size");
@@ -1641,8 +1641,8 @@ protected void size(PreferencesMap prefs) throws RunnerException {
16411641
try {
16421642
size = sizer.computeSize();
16431643
System.out.println(I18n
1644-
.format(_("Binary sketch size: {0} bytes (of a {1} byte maximum)"),
1645-
size, maxsize));
1644+
.format(_("Binary sketch size: {0} bytes (of a {1} byte maximum) - {2}% used"),
1645+
size, maxsize, size * 100 / maxsize));
16461646
} catch (RunnerException e) {
16471647
System.err.println(I18n.format(_("Couldn't determine program size: {0}"),
16481648
e.getMessage()));

0 commit comments

Comments
 (0)