Commit 5491f6ff authored by Bernd Eckenfels's avatar Bernd Eckenfels

make RX-OK and TX-OK col. in "netstat -i" 1 digit longer by left aligning

metric and TX-OVR and shorten max length of them.
parent 5b1a3bb5
......@@ -7,7 +7,7 @@
8/2000 Andi Kleen make the list operations a bit more efficient.
People are crazy enough to use thousands of aliases now.
$Id: interface.c,v 1.21 2001/11/25 06:48:51 ecki Exp $
$Id: interface.c,v 1.22 2002/02/23 21:27:30 ecki Exp $
*/
#include "config.h"
......@@ -580,13 +580,13 @@ int do_if_print(struct interface *ife, void *cookie)
void ife_print_short(struct interface *ptr)
{
printf("%-5.5s ", ptr->name);
printf("%5d %3d", ptr->mtu, ptr->metric);
printf("%5d %-2d", ptr->mtu, ptr->metric);
/* If needed, display the interface statistics. */
if (ptr->statistics_valid) {
printf("%8llu %6lu %6lu %6lu",
printf("%9llu %6lu %6lu %-5lu",
ptr->stats.rx_packets, ptr->stats.rx_errors,
ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors);
printf("%8llu %6lu %6lu %6lu ",
printf("%9llu %6lu %6lu %6lu ",
ptr->stats.tx_packets, ptr->stats.tx_errors,
ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment