just remove floats from the ping endpoint

This commit is contained in:
Nexus 2024-03-06 10:54:03 +00:00 committed by GitHub
parent 09542ab7b3
commit c2fc8037ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
}