From 97688faead64e23e3cf17402f36d93405bca1b62 Mon Sep 17 00:00:00 2001 From: nex Date: Sat, 11 Nov 2023 20:18:54 +0000 Subject: [PATCH] Gigabytes! --- cogs/other.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/other.py b/cogs/other.py index b7fbbd7..50ae276 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1910,9 +1910,12 @@ class OtherCog(commands.Cog): percent = round(completed / total * 100) if percent == 100 and completed != total: percent = round(completed / total * 100, 2) + total_gigabytes = total / 1024 / 1024 / 1024 + completed_gigabytes = completed / 1024 / 1024 / 1024 if not percent % 10 or percent >= 90.5: await msg.edit( - content=f"`{chunk['status']}` - {percent}% ({completed:,}/{total:,})" + content=f"`{chunk['status']}` - {percent}% " + f"({completed_gigabytes:,.2f}GB/{total_gigabytes:,.2f}GB)" ) else: await msg.edit(content=f"`{chunk['status']}`")