protected static String formatFileSize(double length) {
		if (length < 1024) {
			return Math.round(length) + " B";
		}
		length /= 1024;
		if (length < 1024) {
			return Math.round(length) + " KiB";
		}
		length /= 1024;
		if (length < 1024) {
			return Math.round(length) + " MiB";
		}
		length /= 1024;
		if (length < 1024) {
			return Math.round(length) + " GiB";
		}
		length /= 1024;
		if (length < 1024) {
			return Math.round(length) + " TiB";
		}
		return null;
	}