Ensure we pass positive ints to delay function

pull/1939/head
Erik Johnston 2017-02-22 12:08:14 +00:00
parent b7442c3e2b
commit 7455ba436a
1 changed files with 2 additions and 1 deletions

View File

@ -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)
def get_room_throttle_ms(self, room_id):
if room_id in self.throttle_params: