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
b96d9138
Commit
b96d9138
authored
Oct 10, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X netstat: Print statistics with raw SNMP identifiers, not with text description
And do not omit entries with zero value.
parent
479bb4a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
statistics.c
statistics.c
+4
-4
No files found.
statistics.c
View file @
b96d9138
...
...
@@ -339,11 +339,11 @@ static void printval(const struct tabtab *tab, const char *title, unsigned long
if
(
tab
->
tab
)
ent
=
bsearch
(
&
key
,
tab
->
tab
,
tab
->
size
/
sizeof
(
struct
entry
),
sizeof
(
struct
entry
),
cmpentries
);
if
(
!
ent
)
{
/* try our best */
if
(
val
)
printf
(
"%*s%
s:
%llu
\n
"
,
states
[
state
].
indent
,
""
,
title
,
val
);
//
if (!ent) { /* try our best */
//
if (val)
printf
(
"%*s%
-20s:
\t
%llu
\n
"
,
states
[
state
].
indent
,
""
,
title
,
val
);
return
;
}
//
}
type
=
ent
->
type
;
if
(
type
&
I_STATIC
)
{
type
&=
~
I_STATIC
;
...
...
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