]> git.sur5r.net Git - ngadmin/commitdiff
Fix size of printed numbers
authorAlkorin <github@alkorin.fr>
Wed, 4 Mar 2015 14:26:15 +0000 (15:26 +0100)
committerAlkorin <github@alkorin.fr>
Wed, 4 Mar 2015 14:26:15 +0000 (15:26 +0100)
cli/src/com_ports.c

index fc497721e53c1dfe98f56c7b101699bf88dbb588..b82cf5871c0df0a533de36f9939f160351ce3cb5 100644 (file)
@@ -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);