James Moger
2011-07-11 4ce0a52a7da5951383d5395f85c2e70eacb42f20
ByteFormat now returns integer KB values.
1 files modified
2 ■■■ changed files
src/com/gitblit/utils/ByteFormat.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/utils/ByteFormat.java
@@ -45,7 +45,7 @@
                DecimalFormat formatter = new DecimalFormat("#,##0");
                buf.append(formatter.format((double) numBytes)).append(" b");
            } else if (numBytes < 1024 * 1024) {
                DecimalFormat formatter = new DecimalFormat("#,##0.0");
                DecimalFormat formatter = new DecimalFormat("#,##0");
                buf.append(formatter.format((double) numBytes / 1024.0)).append(" KB");
            } else if (numBytes < 1024 * 1024 * 1024) {
                DecimalFormat formatter = new DecimalFormat("#,##0.0");