summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-02-01 14:53:38 +0100
committerMaria Matejka <mq@ucw.cz>2022-02-03 10:30:33 +0100
commitc019008383a439b5e5cf46dc71f902f335a0a9df (patch)
tree49c55163ab4f45dd731e7066231004e880e901ef /sysdep
parentaca4c3fc8e4a6043cafcb8778055d9a505283376 (diff)
IO loop duration fixup
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/io-loop.c4
-rw-r--r--sysdep/unix/io.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c
index 5ab93b31..9b107a1a 100644
--- a/sysdep/unix/io-loop.c
+++ b/sysdep/unix/io-loop.c
@@ -558,7 +558,7 @@ birdloop_main(void *arg)
if (loop->poll_changed)
sockets_prepare(loop);
- btime duration = current_time() - loop_begin;
+ btime duration = current_time_update() - loop_begin;
if (duration > config->watchdog_warning)
log(L_WARN "I/O loop cycle took %d ms", (int) (duration TO_MS));
@@ -578,7 +578,7 @@ birdloop_main(void *arg)
if (loop->stopped && !loop->links)
break;
- loop_begin = current_time();
+ loop_begin = current_time_update();
if (rv)
sockets_fire(loop);
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index fa836f28..e3e388af 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2100,8 +2100,7 @@ static btime loop_time;
static void
io_update_time(void)
{
- times_update();
- last_io_time = current_time();
+ last_io_time = current_time_update();
if (event_open)
{