diff options
| author | 2020-09-21 19:22:06 -0700 | |
|---|---|---|
| committer | 2020-09-21 19:22:06 -0700 | |
| commit | 7ce1c29402e4cc5aff5cc3ebe81f5477877fdb52 (patch) | |
| tree | 06ac9d25afff1ef76aefb7a7ddc6defc04b086ab | |
| parent | Replacing the round function with a format specifier. (diff) | |
Replacing the round function with a format specifier.
Co-authored-by: Dennis Pham <[email protected]>
| -rw-r--r-- | bot/exts/utils/ping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/ping.py b/bot/exts/utils/ping.py index ea67a7b16..608b6c22c 100644 --- a/bot/exts/utils/ping.py +++ b/bot/exts/utils/ping.py @@ -36,7 +36,7 @@ class Latency(commands.Cog): try: delay = await aioping.ping(URLs.site, family=socket.AddressFamily.AF_INET) * 1000 - site_ping = f"{round(delay, ROUND_LATENCY)} ms" + site_ping = f"{delay:.{ROUND_LATENCY}f} ms" except TimeoutError: site_ping = f"{Emojis.cross_mark} Connection timed out." |