From: Eric S. Raymond Date: Mon, 8 Oct 2012 08:51:12 +0000 (-0400) Subject: Prevent CPU usage from going to max due to loop buzzing. X-Git-Tag: 1.9~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f161cd3fa9305d0925cf7893f83ac28e2453bf2;p=irker.git Prevent CPU usage from going to max due to loop buzzing. --- diff --git a/irkerd b/irkerd index ca41da6..302b48a 100755 --- a/irkerd +++ b/irkerd @@ -388,7 +388,7 @@ class Irker: self.debug(1, "process_forever()") while True: with self.library_lock: - self.irc.process_once() + self.irc.process_once(ANTI_BUZZ_DELAY) def _handle_ping(self, connection, _event): "PING arrived, bump the last-received time for the connection." if connection.context: