aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBernd Eckenfels <net-tools@lina.inka.de>2002-02-23 21:27:30 +0000
committerBernd Eckenfels <net-tools@lina.inka.de>2002-02-23 21:27:30 +0000
commit5491f6ffe613b86079862f6b9d2bf0b0f2408ad4 (patch)
treee3cd9fd36f99b19103409d048abcb0d20825fd33 /lib
parentfixed typo in german man page and added a comment that man page is currently (diff)
downloadnet-tools-5491f6ffe613b86079862f6b9d2bf0b0f2408ad4.tar.gz
net-tools-5491f6ffe613b86079862f6b9d2bf0b0f2408ad4.tar.bz2
net-tools-5491f6ffe613b86079862f6b9d2bf0b0f2408ad4.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/interface.c b/lib/interface.c
index 44d18a7..c5f09de 100644
--- a/lib/interface.c
+++ b/lib/interface.c
@@ -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 {