From 1749393732ed5718006368b36a5bce5ea1856b46 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 25 Sep 2021 23:44:59 +0200 Subject: [PATCH] Fixed rnstatus output --- RNS/Utilities/rnstatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index 03f2cb1..b312424 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -42,7 +42,7 @@ def program_setup(configdir, dispall=False, verbosity = 0): if ifstat["clients"] != None: clients = ifstat["clients"] if name.startswith("Shared Instance["): - clients_string = "Connected applications: "+str(clients-1) + clients_string = "Connected applications: "+str(max(clients-1,0)) else: clients_string = "Connected clients: "+str(clients)