From: Maria Matejka Date: Fri, 7 Jun 2024 07:05:11 +0000 (+0200) Subject: Fixed nanoseconds in IO loop time limiter X-Git-Tag: v3.0.0~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67e9a37291c3111bec600555c60ddea7d33c264b;p=thirdparty%2Fbird.git Fixed nanoseconds in IO loop time limiter --- diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c index aa73865e3..2e0758274 100644 --- a/sysdep/unix/io-loop.c +++ b/sysdep/unix/io-loop.c @@ -819,8 +819,8 @@ bird_thread_main(void *arg) if (thr->loop_count > 0) { thr->max_loop_time_ns = (thr->max_latency_ns / 2 - (thr_before_run - thr_loop_start)) / (u64) thr->loop_count; - if (thr->max_loop_time_ns > 300 MS) - thr->max_loop_time_ns = 300 MS; + if (thr->max_loop_time_ns NS > 300 MS) + thr->max_loop_time_ns = 300 MS TO_NS; } /* Run all scheduled loops */