def get_required_mb(): os_info = get_latest_os_info() if not os_info: return None # on Windows, the burning process first unzips the archive and then burns # so we require only the compressed + uncompressed size as free space # we round this up to hundreds of MB to give some buffer required_mb = (os_info['compressed_size'] + os_info['uncompressed_size']) / BYTES_IN_MEGABYTE required_mb = int(math.ceil(required_mb / 100.0) * 100.0) return required_mb
def get_required_mb(): os_info = get_latest_os_info() if not os_info: return None # on Linux, the burning process makes use of gzip to dd pipe # so we require only the compressed size as free space # we round this up to hundreds of MB to give some buffer required_mb = os_info['compressed_size'] / BYTES_IN_MEGABYTE required_mb = int(math.ceil(required_mb / 100.0) * 100.0) return required_mb