Changeset 870 for java/installer2/src
- Timestamp:
- May 14, 2013, 7:29:19 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r863 r870 1 1 appname=AE Installer 2 2 appversion=.1 22 appversion=.13 -
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.