From 620df52b6d1947c2f6e28052f80239c6e519a779 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 1 May 2024 20:22:47 +0100 Subject: [PATCH] Ping expects milliseconds --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 82f3f34..722dc81 100644 --- a/src/main.py +++ b/src/main.py @@ -53,7 +53,7 @@ class KumaThread(KillableThread): self.retries += 1 url = self.url if url.endswith("ping="): - url += str(round(bot.latency, 2)) + url += str(round(bot.latency * 1000, 2)) if bot.is_ready() is False: url = url.replace("status=up", "status=down") url = url.replace("msg=OK", "msg=Bot%20not%20ready") @@ -71,7 +71,7 @@ class KumaThread(KillableThread): end_time = time.time() timeout = self.interval - (end_time - start_time) if self.previous is False: - timeout = 10 + timeout = 2.5 self.kill.wait(timeout)