now
isn't defined now that throttle code has been separated out (src/IRCServer.py)
This commit is contained in:
parent
7792be247c
commit
28107292f5
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue