diff options
| author | John Polstra <jdp@FreeBSD.org> | 2002-07-24 03:02:43 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 2002-07-24 03:02:43 +0000 |
| commit | f824b5187e4c4785cb32f6feb1a0c1459d6905c5 (patch) | |
| tree | 23efb20689613024e75cb76a8367533e47d49173 /usr.bin/systat | |
| parent | be1826c354c6c7e1572e174a36dc764def88117f (diff) | |
Notes
Diffstat (limited to 'usr.bin/systat')
| -rw-r--r-- | usr.bin/systat/netstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 2c552ca89490a..c3b4a3b8a4e78 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -110,8 +110,8 @@ struct netinfo { long ni_lport; /* local port */ struct in_addr ni_faddr; /* foreign address */ long ni_fport; /* foreign port */ - long ni_rcvcc; /* rcv buffer character count */ - long ni_sndcc; /* snd buffer character count */ + u_int ni_rcvcc; /* rcv buffer character count */ + u_int ni_sndcc; /* snd buffer character count */ }; TAILQ_HEAD(netinfohead, netinfo) netcb = TAILQ_HEAD_INITIALIZER(netcb); @@ -450,8 +450,8 @@ shownetstat() p->ni_flags &= ~NIF_FACHG; } mvwaddstr(wnd, p->ni_line, PROTO, p->ni_proto); - mvwprintw(wnd, p->ni_line, RCVCC, "%6d", p->ni_rcvcc); - mvwprintw(wnd, p->ni_line, SNDCC, "%6d", p->ni_sndcc); + mvwprintw(wnd, p->ni_line, RCVCC, "%6u", p->ni_rcvcc); + mvwprintw(wnd, p->ni_line, SNDCC, "%6u", p->ni_sndcc); if (streq(p->ni_proto, "tcp")) { if (p->ni_state < 0 || p->ni_state >= TCP_NSTATES) mvwprintw(wnd, p->ni_line, STATE, "%d", |
