mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-29 22:41:14 -04:00
Local changes
This commit is contained in:
parent
cff886c47b
commit
8d910ff5b9
7 changed files with 16 additions and 7 deletions
|
@ -218,7 +218,8 @@ class EmailPusher(object):
|
|||
)
|
||||
|
||||
def seconds_until(self, ts_msec):
|
||||
return (ts_msec - self.clock.time_msec()) / 1000
|
||||
secs = (ts_msec - self.clock.time_msec()) / 1000
|
||||
return max(secs, 0) # Ensure non-negative
|
||||
|
||||
def get_room_throttle_ms(self, room_id):
|
||||
if room_id in self.throttle_params:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue