From: Alkorin Date: Wed, 4 Mar 2015 14:26:15 +0000 (+0100) Subject: Fix size of printed numbers X-Git-Url: https://git.sur5r.net/?p=ngadmin;a=commitdiff_plain;h=6329ff7f12f6dc0c3c6deb29860544317e7b7a44 Fix size of printed numbers --- diff --git a/cli/src/com_ports.c b/cli/src/com_ports.c index fc49772..b82cf58 100644 --- a/cli/src/com_ports.c +++ b/cli/src/com_ports.c @@ -91,9 +91,9 @@ int do_ports_statistics_show (int argc, const char **argv UNUSED, struct ngadmin goto end; } - printf("Port\tReceived\tSent\tCRC errors\n"); + printf("Port Received Sent CRC errors\n"); for (i = 0; i < sa->ports; i++) - printf("% 4i%12llu%12llu%14llu\n", i + 1, ps[i].recv, ps[i].sent, ps[i].crc); + printf("% 4i%21llu%21llu%21llu\n", i + 1, ps[i].recv, ps[i].sent, ps[i].crc); end: free(ps);