diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-18 02:49:15 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-18 02:49:15 +0200 |
commit | d1667f531faa9349563a9d1a2a03b54c9b4d0c4c (patch) | |
tree | 851426259e09732282aed00412c08e859655a575 /lib/thread.c | |
parent | Merge pull request #1308 from chiragshah6/mdev1 (diff) | |
download | frr-d1667f531faa9349563a9d1a2a03b54c9b4d0c4c.tar.xz frr-d1667f531faa9349563a9d1a2a03b54c9b4d0c4c.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | lib/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c index 2d37857b8..cb5d1d47a 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -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); |