]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
IO loop: fixed local hot page cache flushing condition
authorMaria Matejka <mq@ucw.cz>
Mon, 1 Apr 2024 13:03:24 +0000 (15:03 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 13 May 2024 06:52:48 +0000 (08:52 +0200)
sysdep/unix/io-loop.c

index e7314766c892604635bdf4846fe355218248f483..c21d95031ebe417718dd3f507a8f581b4599db78 100644 (file)
@@ -857,7 +857,7 @@ bird_thread_main(void *arg)
       ASSERT_DIE(pfd.loop.used == pfd.pfd.used);
     }
     /* Nothing to do in at least 5 seconds, flush local hot page cache */
-    else if ((timeout > 5000) && (timeout < 0))
+    else if ((timeout > 5000) || (timeout < 0))
       flush_local_pages();
 
     bird_thread_busy_update(thr, timeout);