aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gustav Odinger <[email protected]>2020-10-08 19:35:20 +0200
committerGravatar Gustav Odinger <[email protected]>2020-10-08 19:59:28 +0200
commit888c427466b370b9ae51e47496e979c2b6faed0c (patch)
tree40e0f4c6f4b40f434069e00d1dc5f43cb610a7cb
parentMerge pull request #1218 from Numerlor/gitignore-log (diff)
Fix millisecond time for command processing time
- For the `.ping` command - Fixes a faulty convertion from seconds to milliseconds
-rw-r--r--bot/exts/utils/ping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/ping.py b/bot/exts/utils/ping.py
index a9ca3dbeb..572fc934b 100644
--- a/bot/exts/utils/ping.py
+++ b/bot/exts/utils/ping.py
@@ -33,7 +33,7 @@ class Latency(commands.Cog):
"""
# datetime.datetime objects do not have the "milliseconds" attribute.
# It must be converted to seconds before converting to milliseconds.
- bot_ping = (datetime.utcnow() - ctx.message.created_at).total_seconds() / 1000
+ bot_ping = (datetime.utcnow() - ctx.message.created_at).total_seconds() * 1000
bot_ping = f"{bot_ping:.{ROUND_LATENCY}f} ms"
try: