MB != MiB
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
This commit is contained in:
parent
cf5db2d80c
commit
3ce2bbfdaa
1 changed files with 1 additions and 0 deletions
|
@ -700,6 +700,7 @@ class Ollama(commands.Cog):
|
|||
if line.get("total") is not None and line.get("completed") is not None:
|
||||
new_bytes = line["completed"] - last_downloaded
|
||||
mbps = new_bytes / 1024 / 1024 / 5
|
||||
last_downloaded = line["completed"]
|
||||
percent = (line["completed"] / line["total"]) * 100
|
||||
else:
|
||||
percent = 50.0
|
||||
|
|
Loading…
Reference in a new issue