Need an array to take its len
This commit is contained in:
parent
0725b54a45
commit
14d3d85bd9
@ -157,7 +157,7 @@ class ServerManager(LoggedClass):
|
|||||||
|
|
||||||
def session_count(self):
|
def session_count(self):
|
||||||
'''Returns a dictionary.'''
|
'''Returns a dictionary.'''
|
||||||
active = len(s for s in self.sessions if s.send_count)
|
active = len([s for s in self.sessions if s.send_count])
|
||||||
total = len(self.sessions)
|
total = len(self.sessions)
|
||||||
return {'active': active, 'inert': total - active, 'total': total}
|
return {'active': active, 'inert': total - active, 'total': total}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user