diff options
author | James Moger <james.moger@gitblit.com> | 2011-07-11 16:16:35 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-07-11 16:16:35 -0400 |
commit | 4ce0a52a7da5951383d5395f85c2e70eacb42f20 (patch) | |
tree | 97bb38407f73f7de73aaa4a2c06084999bf304c4 | |
parent | 30a127621c89ff6afef7ca2f2942fc9a6c64b102 (diff) | |
download | gitblit-4ce0a52a7da5951383d5395f85c2e70eacb42f20.tar.gz gitblit-4ce0a52a7da5951383d5395f85c2e70eacb42f20.zip |
ByteFormat now returns integer KB values.
-rw-r--r-- | src/com/gitblit/utils/ByteFormat.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/utils/ByteFormat.java b/src/com/gitblit/utils/ByteFormat.java index f4c05cd5..cb7da885 100644 --- a/src/com/gitblit/utils/ByteFormat.java +++ b/src/com/gitblit/utils/ByteFormat.java @@ -45,7 +45,7 @@ public class ByteFormat extends Format { 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"); |