mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 17:04:51 -04:00
Add presence metrics
This commit is contained in:
parent
e12ec335a5
commit
5614b4dafb
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue