Merge pull request #35 from ritiek/master

Show exact number of connected clients
This commit is contained in:
derv
2017-06-25 19:58:24 -07:00
committed by GitHub

View File

@@ -128,10 +128,8 @@ class Target(object):
wps = Color.s('{O} n/a') wps = Color.s('{O} n/a')
clients = ' ' clients = ' '
if len(self.clients) == 1: if len(self.clients) > 0:
clients = Color.s('{G}client ') clients = Color.s('{G} ' + str(len(self.clients)))
elif len(self.clients) > 1:
clients = Color.s('{G}clients')
result = '%s %s %s %s %s %s' % (essid, channel, result = '%s %s %s %s %s %s' % (essid, channel,
encryption, power, encryption, power,