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')
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,