Console: Number formatting tweaks (ticket #1913)

This commit is contained in:
zzz
2018-02-19 14:39:21 +00:00
parent 646fe20726
commit ff81b4246a

View File

@@ -1602,7 +1602,7 @@ public class DataHelper {
val /= 1024;
}
DecimalFormat fmt = new DecimalFormat("##0.00");
DecimalFormat fmt = new DecimalFormat("##0.##");
if (val >= 200) {
fmt.setMaximumFractionDigits(0);
} else if (val >= 20) {
@@ -1662,7 +1662,7 @@ public class DataHelper {
scale++;
val /= 1000;
}
DecimalFormat fmt = new DecimalFormat("##0.00");
DecimalFormat fmt = new DecimalFormat("##0.##");
if (val >= 200) {
fmt.setMaximumFractionDigits(0);
} else if (val >= 20) {