diff options
author | bde <bde@FreeBSD.org> | 1998-03-07 15:36:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-03-07 15:36:29 +0000 |
commit | ab37e4723bce19187dad7e0b6f58bb0940032588 (patch) | |
tree | e9d95fa1b9dd666ce7c0730bf4977e8f3c166395 /usr.sbin/pstat | |
parent | 5bf363454e7e3df02636b0ab1023fafd9fb38236 (diff) | |
download | FreeBSD-src-ab37e4723bce19187dad7e0b6f58bb0940032588.zip FreeBSD-src-ab37e4723bce19187dad7e0b6f58bb0940032588.tar.gz |
Set the input and output buffer sizes and the input buffer watermarks
dynamically depending on the line speed(s). This should give the old
sizes and watermarks until drivers are changed.
Display the input watermarks in pstat and sicontrol.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 7fc3f08..d5a26a6 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95"; #endif static const char rcsid[] = - "$Id: pstat.c,v 1.33 1997/11/12 05:42:33 julian Exp $"; + "$Id: pstat.c,v 1.34 1998/01/06 05:33:28 dyson Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -727,7 +727,8 @@ kinfo_vnodes(avnodes) return ((struct e_vnode *)vbuf); } -char hdr[]=" LINE RAW CAN OUT HWT LWT COL STATE SESS PGID DISC\n"; +char hdr[] = +" LINE RAW CAN OUT IHWT LWT OHWT LWT COL STATE SESS PGID DISC\n"; int ttyspace = 128; void @@ -894,8 +895,9 @@ ttyprt(tp, line) else (void)printf("%7s ", name); (void)printf("%2d %3d ", tp->t_rawq.c_cc, tp->t_canq.c_cc); - (void)printf("%3d %4d %3d %7d ", tp->t_outq.c_cc, - tp->t_hiwat, tp->t_lowat, tp->t_column); + (void)printf("%3d %4d %3d %4d %3d %7d ", tp->t_outq.c_cc, + tp->t_ihiwat, tp->t_ilowat, tp->t_ohiwat, tp->t_olowat, + tp->t_column); for (i = j = 0; ttystates[i].flag; i++) if (tp->t_state&ttystates[i].flag) state[j++] = ttystates[i].val; |