From ff81b4246a627bcb5d10eff35f0b03df3cf4b9f2 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 19 Feb 2018 14:39:21 +0000 Subject: [PATCH] Console: Number formatting tweaks (ticket #1913) --- core/java/src/net/i2p/data/DataHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/src/net/i2p/data/DataHelper.java b/core/java/src/net/i2p/data/DataHelper.java index 15bc0eb7b..5135de3fe 100644 --- a/core/java/src/net/i2p/data/DataHelper.java +++ b/core/java/src/net/i2p/data/DataHelper.java @@ -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) {