diff options
author | ru <ru@FreeBSD.org> | 2001-05-31 07:14:52 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-05-31 07:14:52 +0000 |
commit | 5ecf3be2254682dc79b9ea010ce7884f63fa2e74 (patch) | |
tree | 1393fdb80a6ef90f2799cbfe43598a676dd1f177 /usr.bin | |
parent | 262e245e85544eff9c9c279763d40b2c331c5329 (diff) | |
download | FreeBSD-src-5ecf3be2254682dc79b9ea010ce7884f63fa2e74.zip FreeBSD-src-5ecf3be2254682dc79b9ea010ce7884f63fa2e74.tar.gz |
Display -tcp w/o load average so that all statistics fits on a 80x25 screen.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/systat/cmdtab.c | 2 | ||||
-rw-r--r-- | usr.bin/systat/tcp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/cmdtab.c b/usr.bin/systat/cmdtab.c index ffb0259..466a647 100644 --- a/usr.bin/systat/cmdtab.c +++ b/usr.bin/systat/cmdtab.c @@ -70,7 +70,7 @@ struct cmdtab cmdtab[] = { resetip, CF_LOADAV }, { "tcp", showtcp, fetchtcp, labeltcp, inittcp, opentcp, closetcp, cmdmode, - resettcp, CF_LOADAV }, + resettcp, 0 }, { 0 } }; struct cmdtab *curcmd = &cmdtab[0]; diff --git a/usr.bin/systat/tcp.c b/usr.bin/systat/tcp.c index 0b88e4b..8163028 100644 --- a/usr.bin/systat/tcp.c +++ b/usr.bin/systat/tcp.c @@ -94,7 +94,8 @@ static struct tcpstat curstat, initstat, oldstat; WINDOW * opentcp(void) { - return (subwin(stdscr, LINES-5-1, 0, 5, 0)); + + return (stdscr); } void @@ -105,7 +106,6 @@ closetcp(w) return; wclear(w); wrefresh(w); - delwin(w); } void |