mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 10:22:34 +00:00
Console: Number formatting tweaks (ticket #1913)
This commit is contained in:
1 parent
646fe20726
commit
ff81b4246a
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user