Add percent to accuracy

This commit is contained in:
Zeva Rose 2021-06-26 23:03:51 -06:00
parent 2c7380e502
commit 40dee2102d

View file

@ -75,7 +75,7 @@ class ImageCog(commands.Cog):
accuracy = (len(file) / tgt_size) * 100
await ctx.send(
"New size: {}".format(convert_bytesize(len(file)))
+ "\nAccuracy: {}".format(accuracy),
+ "\nAccuracy: {:0.2f}%".format(accuracy),
file=File(bufio, filename="resized.png"),
)