mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-23 17:31:55 +00:00
fixup! fixup! show threads: displaying the same thread id's as in log
This commit is contained in:
parent
8d3a5cad41
commit
5288e22d22
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user