rename ping to http_ping
This commit is contained in:
@@ -14,7 +14,7 @@ logging.disable(logging.CRITICAL)
|
|||||||
uptime = {}
|
uptime = {}
|
||||||
|
|
||||||
|
|
||||||
def ping(service):
|
def http_ping(service):
|
||||||
while True:
|
while True:
|
||||||
print(f"[I] Pinging {service}")
|
print(f"[I] Pinging {service}")
|
||||||
try:
|
try:
|
||||||
@@ -64,7 +64,7 @@ for service in config["services"]:
|
|||||||
uptime[service].append("?")
|
uptime[service].append("?")
|
||||||
|
|
||||||
threading.Thread(
|
threading.Thread(
|
||||||
target=ping,
|
target=http_ping,
|
||||||
args=(service,),
|
args=(service,),
|
||||||
).start()
|
).start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user