Add a timestamp to recent_sends for EACH line sent

This commit is contained in:
jesopo 2019-05-18 19:07:45 +01:00
parent 4e0e63e7f8
commit 105351d6f3

View file

@ -143,7 +143,7 @@ class Socket(IRCObject.Object):
self.bytes_written += bytes_written_i self.bytes_written += bytes_written_i
now = time.monotonic() now = time.monotonic()
self._recent_sends.append(now) self._recent_sends.extend([now]*lines_sent)
self.last_send = now self.last_send = now
return sent_lines return sent_lines