summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/utils/ByteFormat.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-05-26 17:11:38 -0400
committerJames Moger <james.moger@gitblit.com>2011-05-26 17:11:38 -0400
commit2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa (patch)
treeb9bc648068b0af5cbbbc3e2e0ad707e0c59d4db2 /src/com/gitblit/utils/ByteFormat.java
parentf13c4c5a35a18d8478b276cc44570bbc3398aa73 (diff)
downloadgitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.tar.gz
gitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.zip
Findbugs. CodePro Audit. Checkstyle. Unit test refactoring.
Diffstat (limited to 'src/com/gitblit/utils/ByteFormat.java')
-rw-r--r--src/com/gitblit/utils/ByteFormat.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/gitblit/utils/ByteFormat.java b/src/com/gitblit/utils/ByteFormat.java
index f4cc278f..92a8e46d 100644
--- a/src/com/gitblit/utils/ByteFormat.java
+++ b/src/com/gitblit/utils/ByteFormat.java
@@ -32,8 +32,6 @@ public class ByteFormat extends Format {
public ByteFormat() {
}
- // Implemented from the Format class
-
/**
* Formats a long which represent a number of bytes.
*/
@@ -73,7 +71,8 @@ public class ByteFormat extends Format {
buf.append(formatter.format((double) numBytes / (1024.0 * 1024.0))).append(" MB");
} else {
DecimalFormat formatter = new DecimalFormat("#,##0.0");
- buf.append(formatter.format((double) numBytes / (1024.0 * 1024.0 * 1024.0))).append(" GB");
+ buf.append(formatter.format((double) numBytes / (1024.0 * 1024.0 * 1024.0)))
+ .append(" GB");
}
}
return buf;