0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 09:58:43 +00:00

fixup! fixup! show threads: displaying the same thread id's as in log

This commit is contained in:
Maria Matejka 2024-06-27 14:19:29 +02:00
parent 8d3a5cad41
commit 5288e22d22

View File

@ -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");
}