aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-10-09 04:13:24 +1000
committerGravatar GitHub <[email protected]>2020-10-09 04:13:24 +1000
commit9b276db44ebb67b1be751ba327a46b49cf55b491 (patch)
tree6bc65221d6b5cc6353ebbb22052e9b6735e2a686
parentPR #1209: Improve 'send_attachments' (diff)
parentFix millisecond time for command processing time (diff)
Merge pull request #1222 from python-discord/fix-ping-processing-time
Fix millisecond time for command processing time
-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: