diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2011-01-24 10:58:36 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2011-01-24 10:58:36 +0000 |
commit | bc211d112db9f0985b69000be7da3969da8a7602 (patch) | |
tree | e4cd0eb58422a539235fd1cfc34d8979b7b5928f | |
parent | 7ff67a2025478ef67518f57d14c9d16720a60f6e (diff) |
Notes
-rw-r--r-- | usr.bin/netstat/netisr.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/netstat/netisr.c b/usr.bin/netstat/netisr.c index 58f2902c9b3a..25f341cc5ddc 100644 --- a/usr.bin/netstat/netisr.c +++ b/usr.bin/netstat/netisr.c @@ -436,20 +436,14 @@ static void netisr_print_workstream(struct sysctl_netisr_workstream *snwsp) { struct sysctl_netisr_work *snwp; - int first; u_int i; - first = 1; for (i = 0; i < work_array_len; i++) { snwp = &work_array[i]; if (snwp->snw_wsid != snwsp->snws_wsid) continue; - if (first) { - printf("%4u ", snwsp->snws_wsid); - printf("%3u ", snwsp->snws_cpu); - first = 0; - } else - printf("%4s %3s ", "", ""); + printf("%4u ", snwsp->snws_wsid); + printf("%3u ", snwsp->snws_cpu); printf("%2s", ""); printf("%-6s", netisr_proto2name(snwp->snw_proto)); printf(" %5u", snwp->snw_len); |