Display -tcp w/o load average so that all statistics fits on a 80x25 screen.
This commit is contained in:
parent
7bbf75ec4f
commit
18fbb861ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77515
@ -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];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user