File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1631,14 +1631,16 @@ protected void size(PreferencesMap prefs) throws RunnerException {
1631
1631
System .out .println (I18n
1632
1632
.format (_ ("Binary sketch size: {0} bytes (of a {1} byte maximum) - {2}% used" ),
1633
1633
textSize , maxTextSize , textSize * 100 / maxTextSize ));
1634
- if (maxDataSize > 0 ) {
1635
- System .out .println (I18n
1636
- .format (_ ("Memory usage: {0} bytes (of a {1} byte maximum) - {2}% used" ),
1637
- dataSize , maxDataSize , dataSize * 100 / maxDataSize ));
1638
- } else {
1639
- System .out .println (I18n
1640
- .format (_ ("Memory usage: {0} bytes" ),
1641
- dataSize ));
1634
+ if (dataSize >= 0 ) {
1635
+ if (maxDataSize > 0 ) {
1636
+ System .out .println (I18n
1637
+ .format (_ ("Memory usage: {0} bytes (of a {1} byte maximum) - {2}% used" ),
1638
+ dataSize , maxDataSize , dataSize * 100 / maxDataSize ));
1639
+ } else {
1640
+ System .out .println (I18n
1641
+ .format (_ ("Memory usage: {0} bytes" ),
1642
+ dataSize ));
1643
+ }
1642
1644
}
1643
1645
} catch (RunnerException e ) {
1644
1646
System .err .println (I18n .format (_ ("Couldn't determine program size: {0}" ),
You can’t perform that action at this time.
0 commit comments