From c2fc8037abd6c917905390df5e875a4bdad7b62d Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 6 Mar 2024 10:54:03 +0000 Subject: [PATCH] just remove floats from the ping endpoint --- web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/server.py b/web/server.py index cffb9d2..e0eb747 100644 --- a/web/server.py +++ b/web/server.py @@ -110,7 +110,7 @@ def ping(): return { "ping": "pong", "online": app.state.bot.is_ready(), - "latency": max(round(app.state.bot.latency, 2), 0.01), + "latency": max(round(app.state.bot.latency), 1), "uptime": max(round(bot_started.total_seconds(), 2), 1), }