From: Donald Sharp Date: Mon, 26 Sep 2016 18:06:23 +0000 (-0400) Subject: lib: Allow more space in thread.c output X-Git-Tag: frr-2.0-rc1~219 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0cf74a83920687f3c8be84a8c7d796acf2cb6e95;p=matthieu%2Ffrr.git lib: Allow more space in thread.c output When displaying thread time for long running/busy protocols, the space allocated may not be sufficient. Allow the runtime to take a bit more space. Signed-off-by: Donald Sharp --- diff --git a/lib/thread.c b/lib/thread.c index a26eb6bfd2..26be17585e 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -222,12 +222,12 @@ vty_out_cpu_thread_history(struct vty* vty, struct cpu_thread_history *a) { #ifdef HAVE_RUSAGE - vty_out(vty, "%7ld.%03ld %9d %8ld %9ld %8ld %9ld", + vty_out(vty, "%10ld.%03ld %9d %8ld %9ld %8ld %9ld", 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); #else - vty_out(vty, "%7ld.%03ld %9d %8ld %9ld", + vty_out(vty, "%10ld.%03ld %9d %8ld %9ld", a->real.total/1000, a->real.total%1000, a->total_calls, a->real.total/a->total_calls, a->real.max); #endif @@ -278,7 +278,7 @@ cpu_record_print(struct vty *vty, thread_type filter) vty_out(vty, "%21s %18s %18s%s", "", "CPU (user+system):", "Real (wall-clock):", VTY_NEWLINE); #endif - vty_out(vty, "Runtime(ms) Invoked Avg uSec Max uSecs"); + vty_out(vty, " Runtime(ms) Invoked Avg uSec Max uSecs"); #ifdef HAVE_RUSAGE vty_out(vty, " Avg uSec Max uSecs"); #endif