Commit b96d9138 authored by Kirill Smelkov's avatar Kirill Smelkov

X netstat: Print statistics with raw SNMP identifiers, not with text description

And do not omit entries with zero value.
parent 479bb4a7
......@@ -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;
......
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