Add percent to accuracy
This commit is contained in:
parent
2c7380e502
commit
40dee2102d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class ImageCog(commands.Cog):
|
||||||
accuracy = (len(file) / tgt_size) * 100
|
accuracy = (len(file) / tgt_size) * 100
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
"New size: {}".format(convert_bytesize(len(file)))
|
"New size: {}".format(convert_bytesize(len(file)))
|
||||||
+ "\nAccuracy: {}".format(accuracy),
|
+ "\nAccuracy: {:0.2f}%".format(accuracy),
|
||||||
file=File(bufio, filename="resized.png"),
|
file=File(bufio, filename="resized.png"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue