From 0d4eec7f7f8598787b0d6ed7a6b9cd0b5e010bc0 Mon Sep 17 00:00:00 2001 From: idk Date: Fri, 31 Mar 2023 23:08:45 +0000 Subject: [PATCH] fix decimal/comma formatting issue on stats page --- router/java/src/net/i2p/router/StatisticsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/java/src/net/i2p/router/StatisticsManager.java b/router/java/src/net/i2p/router/StatisticsManager.java index 36896a2fa2..cfb688adcf 100644 --- a/router/java/src/net/i2p/router/StatisticsManager.java +++ b/router/java/src/net/i2p/router/StatisticsManager.java @@ -46,7 +46,7 @@ public class StatisticsManager { public StatisticsManager(RouterContext context) { _context = context; - _fmt = SIMPLE_STATS ? new DecimalFormat("0.00") : + _fmt = SIMPLE_STATS ? new DecimalFormat("0.00", new DecimalFormatSymbols(Locale.UK)) : new DecimalFormat("###,##0.00", new DecimalFormatSymbols(Locale.UK)); _pct = new DecimalFormat("#0.00%", new DecimalFormatSymbols(Locale.UK)); _log = context.logManager().getLog(StatisticsManager.class);