summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-04-30 04:26:46 +0000
committerbde <bde@FreeBSD.org>2006-04-30 04:26:46 +0000
commit1a769818fed8aac0f389ffe0e1c8b90b88451e87 (patch)
treec9f530dc8f5ab25caea2ee408fe8cb03c131a441 /usr.bin/systat/netstat.c
parentcae6dfae7d6d6411928fcea33679d4f25f07e8be (diff)
downloadFreeBSD-src-1a769818fed8aac0f389ffe0e1c8b90b88451e87.zip
FreeBSD-src-1a769818fed8aac0f389ffe0e1c8b90b88451e87.tar.gz
Show the load average in the tcp display (it was already shown, perhaps
not very usefully, in all other displays). This was the original point of the PR. Move the load average up by 2 so that it starts in row 0 for all windows (2 lines above it were wasted for all other windows except vmstat). Move everything below it up by 2 or 3 (3 for icmp and icmp6 which had an extra blank line due from not compensating for the foot-shooting in note (3); only ip and ip6 compensated). Reduce the magic numbers related to this. Notes by the submitter: %%% 1. All the subwin() calls are identical using #define MAINWIN_ROW 3 (systat.h). 2. The load average is at the top of the window. 3. Each display starts on the fourth line. I made changes to those displays that shifted the start line (i.e., icmp). This entailed a lot of changes within the comments at the top of those displays. 4. For ip6, I shifted the "Input next-header histogram" column down one row to separate it from "IPv6 Output". I raised "bad scope packets" and "address selection failed" up one row to stay with "IPv6 Input" (valid?). They were down one row to probably line up at the bottom, but I think they should stick with their fellow items in a column. 5. I condensed ifstat a bit. It had a lot of empty rows. %%% Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r--usr.bin/systat/netstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index 735cce3..adb905a 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -97,7 +97,7 @@ opennetstat()
{
sethostent(1);
setnetent(1);
- return (subwin(stdscr, LINES-5-1, 0, 5, 0));
+ return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0));
}
struct netinfo {
OpenPOWER on IntegriCloud