Browse Source

Need an array to take its len

master
Neil Booth 8 years ago
parent
commit
14d3d85bd9
  1. 2
      server/protocol.py

2
server/protocol.py

@ -157,7 +157,7 @@ class ServerManager(LoggedClass):
def session_count(self):
'''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)
return {'active': active, 'inert': total - active, 'total': total}

Loading…
Cancel
Save