From febdfbd03c3fe2b043b99f81ec2c9e36eaee8847 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 27 Apr 2023 11:17:28 +0100 Subject: [PATCH] Round file size in output --- cogs/other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/other.py b/cogs/other.py index e6aa305..8953d94 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -819,7 +819,7 @@ class OtherCog(commands.Cog): "\t- Extension: {0[ext]}\n" "\t- Protocol: {0[protocol]}\n" "\t- Resolution: {0[resolution]}\n" - "\t- Size: {1}MB".format(fmt, fmt["filesize"] / 1024 ** 2) + "\t- Size: {1}MB".format(fmt, round(fmt["filesize"] / 1024 ** 2, 1)) ) await ctx.edit(content="Invalid format. Available formats:") for page in paginator.pages: