Fix timeout type
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user