Fixed rnstatus output
This commit is contained in:
parent
dcde5035b9
commit
1749393732
@ -42,7 +42,7 @@ def program_setup(configdir, dispall=False, verbosity = 0):
|
|||||||
if ifstat["clients"] != None:
|
if ifstat["clients"] != None:
|
||||||
clients = ifstat["clients"]
|
clients = ifstat["clients"]
|
||||||
if name.startswith("Shared Instance["):
|
if name.startswith("Shared Instance["):
|
||||||
clients_string = "Connected applications: "+str(clients-1)
|
clients_string = "Connected applications: "+str(max(clients-1,0))
|
||||||
else:
|
else:
|
||||||
clients_string = "Connected clients: "+str(clients)
|
clients_string = "Connected clients: "+str(clients)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user