From 20e79fb8335bef7f72d961e65c5c5b3cd8cc7309 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Tue, 13 Jun 2017 19:54:55 +0530 Subject: [PATCH] Show exact number of connected clients --- py/Target.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/py/Target.py b/py/Target.py index 545185d..552a3c8 100644 --- a/py/Target.py +++ b/py/Target.py @@ -128,10 +128,8 @@ class Target(object): wps = Color.s('{O} n/a') clients = ' ' - if len(self.clients) == 1: - clients = Color.s('{G}client ') - elif len(self.clients) > 1: - clients = Color.s('{G}clients') + if len(self.clients) > 0: + clients = Color.s('{G} ' + str(len(self.clients))) result = '%s %s %s %s %s %s' % (essid, channel, encryption, power,