Prevent CPU usage from going to max due to loop buzzing.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 8 Oct 2012 08:51:12 +0000 (04:51 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 8 Oct 2012 08:51:12 +0000 (04:51 -0400)
irkerd

diff --git a/irkerd b/irkerd
index ca41da623f87b5a39b28f53a380dfcc1dd63f2d6..302b48a0efec29ab76ae29c6b3562cf43a19d44d 100755 (executable)
--- 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: