mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-22 06:17:04 +00:00
Fixed nanoseconds in IO loop time limiter
This commit is contained in:
parent
45cd4bbe9c
commit
67e9a37291
@ -819,8 +819,8 @@ bird_thread_main(void *arg)
|
|||||||
if (thr->loop_count > 0)
|
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;
|
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)
|
if (thr->max_loop_time_ns NS > 300 MS)
|
||||||
thr->max_loop_time_ns = 300 MS;
|
thr->max_loop_time_ns = 300 MS TO_NS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Run all scheduled loops */
|
/* Run all scheduled loops */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user