def format_bytes(count):
    """
    Format bytes in human-readable format
    """
    for unit in ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB']:
        if abs(count) < 1024.0:
            return f"{count:3.1f} {unit}"
        count /= 1024.0
    return f"{count:.1f} YiB"