now isn't defined now that throttle code has been separated out (src/IRCServer.py)

This commit is contained in:
jesopo 2019-02-10 14:12:39 +00:00
parent 7792be247c
commit 28107292f5

View file

@ -378,7 +378,7 @@ class Server(IRCObject.Object):
return 0 return 0
time_left = self.recent_sends[0]+THROTTLE_SECONDS time_left = self.recent_sends[0]+THROTTLE_SECONDS
time_left = time_left-now time_left = time_left-time.monotonic()
return time_left return time_left
def set_write_throttling(self, is_on: bool): def set_write_throttling(self, is_on: bool):