Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
5491f6ff
Commit
5491f6ff
authored
Feb 23, 2002
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/interface.c
lib/interface.c
+4
-4
No files found.
lib/interface.c
View file @
5491f6ff
...
...
@@ -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.2
1 2001/11/25 06:48:51
ecki Exp $
$Id: interface.c,v 1.2
2 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 %
3
d"
,
ptr
->
mtu
,
ptr
->
metric
);
printf
(
"%5d %
-2
d"
,
ptr
->
mtu
,
ptr
->
metric
);
/* If needed, display the interface statistics. */
if
(
ptr
->
statistics_valid
)
{
printf
(
"%
8llu %6lu %6lu %6
lu"
,
printf
(
"%
9llu %6lu %6lu %-5
lu"
,
ptr
->
stats
.
rx_packets
,
ptr
->
stats
.
rx_errors
,
ptr
->
stats
.
rx_dropped
,
ptr
->
stats
.
rx_fifo_errors
);
printf
(
"%
8
llu %6lu %6lu %6lu "
,
printf
(
"%
9
llu %6lu %6lu %6lu "
,
ptr
->
stats
.
tx_packets
,
ptr
->
stats
.
tx_errors
,
ptr
->
stats
.
tx_dropped
,
ptr
->
stats
.
tx_fifo_errors
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment