forked from I2P_Developers/i2p.i2p
Console: Number formatting tweaks (ticket #1913)
This commit is contained in:
@@ -1602,7 +1602,7 @@ public class DataHelper {
|
|||||||
val /= 1024;
|
val /= 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
DecimalFormat fmt = new DecimalFormat("##0.00");
|
DecimalFormat fmt = new DecimalFormat("##0.##");
|
||||||
if (val >= 200) {
|
if (val >= 200) {
|
||||||
fmt.setMaximumFractionDigits(0);
|
fmt.setMaximumFractionDigits(0);
|
||||||
} else if (val >= 20) {
|
} else if (val >= 20) {
|
||||||
@@ -1662,7 +1662,7 @@ public class DataHelper {
|
|||||||
scale++;
|
scale++;
|
||||||
val /= 1000;
|
val /= 1000;
|
||||||
}
|
}
|
||||||
DecimalFormat fmt = new DecimalFormat("##0.00");
|
DecimalFormat fmt = new DecimalFormat("##0.##");
|
||||||
if (val >= 200) {
|
if (val >= 200) {
|
||||||
fmt.setMaximumFractionDigits(0);
|
fmt.setMaximumFractionDigits(0);
|
||||||
} else if (val >= 20) {
|
} else if (val >= 20) {
|
||||||
|
Reference in New Issue
Block a user