Fix download size

This commit is contained in:
heyarne 2021-03-10 13:10:56 +01:00
commit 0a7b170d6a

View file

@ -974,12 +974,12 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Downloaded 0.00GB\n" "Downloaded 3.78GB\n"
] ]
} }
], ],
"source": [ "source": [
"downloaded_bytes_total = sum(p['downloaded_bytes'] for p in downloads.values())\n", "downloaded_bytes_total = sum(p['size'] for p in downloads.values())\n",
"print(f'Downloaded {(downloaded_bytes_total / 1024 ** 3):.2f}GB')" "print(f'Downloaded {(downloaded_bytes_total / 1024 ** 3):.2f}GB')"
] ]
}, },