X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Ftop.c;h=aafc2a4418702b134ce2d48b2d7c8861450baaf2;hb=1be7dc759a64d436fd7586aad43b545f2dc665b5;hp=8cd82be320db94ec62b111bcf13777ccfd766afc;hpb=4c16094e949e1f17461ac744118076a3cec437e8;p=tinc diff --git a/src/top.c b/src/top.c index 8cd82be3..aafc2a44 100644 --- a/src/top.c +++ b/src/top.c @@ -25,6 +25,7 @@ #include "control_common.h" #include "list.h" +#include "names.h" #include "tincctl.h" #include "top.h" #include "xalloc.h" @@ -229,7 +230,7 @@ static void redraw(void) { attrset(A_DIM); if(cumulative) - mvprintw(row, 0, "%-16s %10"PRIu64" %10.0f %10"PRIu64" %10.0f", + mvprintw(row, 0, "%-16s %10.0f %10.0f %10.0f %10.0f", node->name, node->in_packets * pscale, node->in_bytes * bscale, node->out_packets * pscale, node->out_bytes * bscale); else mvprintw(row, 0, "%-16s %10.0f %10.0f %10.0f %10.0f",