Show exact number of connected clients

This commit is contained in:
Ritiek Malhotra
2017-06-13 19:54:55 +05:30
committed by GitHub
parent 41402c6481
commit 20e79fb833

View File

@@ -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,