Ping expects milliseconds
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
This commit is contained in:
parent
f6c74d05d3
commit
620df52b6d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue