From 67e365c8b3526f3a8b3152dd7cfd5edd8041eb57 Mon Sep 17 00:00:00 2001 From: kenji Date: Fri, 6 Jun 2025 11:40:20 -0400 Subject: [PATCH] Fix timeout type --- check_mirotalksfu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/check_mirotalksfu.py b/check_mirotalksfu.py index 8dd12ba..4846bdd 100755 --- a/check_mirotalksfu.py +++ b/check_mirotalksfu.py @@ -15,7 +15,7 @@ def main(args): # load default values if not passed as arguments if args.timeout: - timeout = args.timeout + timeout = float(args.timeout) else: timeout = 10 @@ -61,7 +61,6 @@ def main(args): rooms=data['totalRooms'] users=data['totalUsers'] print("MIROTALKSFU OK - %s second response time | rooms=%s users=%s" % (delay, rooms, users)) - #print(json.dumps(response.json())) else: print("MIROTALKSFU WARN - Unknown error") sys.exit(CODE_WARN)