]> 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>
Sat, 18 May 2024 13:48:03 +0000 (15:48 +0200)
sysdep/unix/io-loop.c

index 0a222ba029b9f4dec33116ce16e1e7df475678d7..705b3407257e0feabd6043c0bb4b2b2a7f02bcac 100644 (file)
@@ -885,7 +885,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);