mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
Merge pull request #7972 from donaldsharp/getrusage_data
lib: Line up `show thread cpu` output appropriately
This commit is contained in:
commit
3d3ed04d39
@ -119,7 +119,7 @@ static void vty_out_cpu_thread_history(struct vty *vty,
|
||||
a->total_active, a->cpu.total / 1000, a->cpu.total % 1000,
|
||||
a->total_calls, (a->cpu.total / a->total_calls), a->cpu.max,
|
||||
(a->real.total / a->total_calls), a->real.max);
|
||||
vty_out(vty, " %c%c%c%c%c %s\n",
|
||||
vty_out(vty, " %c%c%c%c%c %s\n",
|
||||
a->types & (1 << THREAD_READ) ? 'R' : ' ',
|
||||
a->types & (1 << THREAD_WRITE) ? 'W' : ' ',
|
||||
a->types & (1 << THREAD_TIMER) ? 'T' : ' ',
|
||||
@ -188,7 +188,7 @@ static void cpu_record_print(struct vty *vty, uint8_t filter)
|
||||
name);
|
||||
vty_out(vty, "-------------------------------%s\n",
|
||||
underline);
|
||||
vty_out(vty, "%21s %18s %18s\n", "",
|
||||
vty_out(vty, "%30s %18s %18s\n", "",
|
||||
"CPU (user+system):", "Real (wall-clock):");
|
||||
vty_out(vty,
|
||||
"Active Runtime(ms) Invoked Avg uSec Max uSecs");
|
||||
@ -211,7 +211,7 @@ static void cpu_record_print(struct vty *vty, uint8_t filter)
|
||||
vty_out(vty, "\n");
|
||||
vty_out(vty, "Total thread statistics\n");
|
||||
vty_out(vty, "-------------------------\n");
|
||||
vty_out(vty, "%21s %18s %18s\n", "",
|
||||
vty_out(vty, "%30s %18s %18s\n", "",
|
||||
"CPU (user+system):", "Real (wall-clock):");
|
||||
vty_out(vty, "Active Runtime(ms) Invoked Avg uSec Max uSecs");
|
||||
vty_out(vty, " Avg uSec Max uSecs");
|
||||
|
Loading…
Reference in New Issue
Block a user