package freenet.support;
public class SizeUtil {
public static String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"};
<BUG>public static String formatSize(long sz) {
long s = 1;</BUG>
int i;
for(i=0;i<SizeUtil.suffixes.length;i++) {
s *= 1024;

package freenet.support;
public class SizeUtil {
public static String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"};
public static String formatSize(long sz) {
return formatSize(sz, false);
}
public static String formatSize(long sz, boolean useNonBreakingSpace) {
long s = 1;
int i;
for(i=0;i<SizeUtil.suffixes.length;i++) {
s *= 1024;
