Skip to content

Commit

Permalink
conditional printing of values (to support -tuw options for netstat -s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Eckenfels committed Oct 3, 2008
1 parent 2e572c2 commit 57b70fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions statistics.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 1997,1999,2000 Andi Kleen. Subject to the GPL.
* $Id: statistics.c,v 1.21 2008/10/03 00:05:20 ecki Exp $
* $Id: statistics.c,v 1.22 2008/10/03 01:07:47 ecki Exp $
* 19980630 - i18n - Arnaldo Carvalho de Melo <[email protected]>
* 19981113 - i18n fixes - Arnaldo Carvalho de Melo <[email protected]>
* 19990101 - added net/netstat, -t, -u, -w supprt - Bernd Eckenfels
Expand Down Expand Up @@ -494,7 +494,8 @@ void process6_fd(FILE *f)
cpytitle(buf2, buf3);
tab = newtable(snmp6tabs, buf3);
}
printval(tab, buf2, val);
if (*(tab->flag))
printval(tab, buf2, val);
}

}
Expand Down

0 comments on commit 57b70fa

Please sign in to comment.