From 5288e22d228c08ffb1829ab86f08e90d396c9c9d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 27 Jun 2024 14:19:29 +0200 Subject: [PATCH] fixup! fixup! show threads: displaying the same thread id's as in log --- sysdep/unix/io-loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c index 16ffbb2b..a29a922f 100644 --- a/sysdep/unix/io-loop.c +++ b/sysdep/unix/io-loop.c @@ -1362,6 +1362,9 @@ cmd_show_threads_done(struct bird_thread_syncer *sync) UNLOCK_DOMAIN(attrs, group->domain); } + if (!tsd->show_loops) + cli_printf(tsd->cli, -1027, "Thread ID Working Overhead Last Pickup/Drop"); + for (uint i = 0; i < tsd->line_pos - 1; i++) cli_printf(tsd->cli, -1027, "%s", tsd->lines[i]); @@ -1382,9 +1385,6 @@ cmd_show_threads(int show_loops) this_cli->cont = bird_thread_show_cli_cont; this_cli->cleanup = bird_thread_show_cli_cleanup; - if (!show_loops) - tsd_append("Thread ID Working Overhead Last Pickup/Drop"); - bird_thread_sync_all(&tsd->sync, bird_thread_show, cmd_show_threads_done, "Show Threads"); }