Changeset 870 for java/installer2/src/net/oni2/aeinstaller/backend
- Timestamp:
- May 14, 2013, 7:29:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/SizeFormatter.java
r594 r870 13 13 */ 14 14 public static String format(long sizeVal, int digits) { 15 String names[] = { "B", "KiB", "MiB", "GiB" };15 String names[] = { "B", "KiB", "MiB", "GiB", "TiB" }; 16 16 int nameInd = 0; 17 17 float size = sizeVal; 18 while ( size > 1024) {18 while ((size > 1024) && (nameInd < (names.length - 1))) { 19 19 nameInd++; 20 20 size /= 1024;
Note:
See TracChangeset
for help on using the changeset viewer.