mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 20:16:01 +00:00
lib: Display unsigned instead of signed
When displaying thread cpu data, display unsigned instead of signed data when we get really really really large numbers of invocations. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
589a94533c
commit
d1667f531f
@ -89,7 +89,7 @@ static void cpu_record_hash_free(void *a)
|
||||
static void vty_out_cpu_thread_history(struct vty *vty,
|
||||
struct cpu_thread_history *a)
|
||||
{
|
||||
vty_out(vty, "%5d %10ld.%03ld %9d %8ld %9ld %8ld %9ld", a->total_active,
|
||||
vty_out(vty, "%5d %10lu.%03lu %9u %8lu %9lu %8lu %9lu", 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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user