Add presence metrics

This commit is contained in:
Erik Johnston 2016-02-19 09:50:54 +00:00
parent e12ec335a5
commit 5614b4dafb
2 changed files with 14 additions and 0 deletions

View file

@ -89,3 +89,9 @@ class WheelTimer(object):
ret.extend(self.entries.pop(0).queue)
return ret
def __len__(self):
l = 0
for entry in self.entries:
l += len(entry.queue)
return l