MB != MiB
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s

This commit is contained in:
Nexus 2024-05-31 18:25:46 +01:00
parent cf5db2d80c
commit 3ce2bbfdaa
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -700,6 +700,7 @@ class Ollama(commands.Cog):
if line.get("total") is not None and line.get("completed") is not None: if line.get("total") is not None and line.get("completed") is not None:
new_bytes = line["completed"] - last_downloaded new_bytes = line["completed"] - last_downloaded
mbps = new_bytes / 1024 / 1024 / 5 mbps = new_bytes / 1024 / 1024 / 5
last_downloaded = line["completed"]
percent = (line["completed"] / line["total"]) * 100 percent = (line["completed"] / line["total"]) * 100
else: else:
percent = 50.0 percent = 50.0