aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2006-04-30 04:26:46 +0000
committerBruce Evans <bde@FreeBSD.org>2006-04-30 04:26:46 +0000
commit8aa22952a9a3437d9f0cc4859874db73fa97c4b1 (patch)
treec9f530dc8f5ab25caea2ee408fe8cb03c131a441 /usr.bin/systat/netstat.c
parentef48b7b7e621424b55429e2587ecc0cc6a60f530 (diff)
downloadsrc-8aa22952a9a3437d9f0cc4859874db73fa97c4b1.tar.gz
src-8aa22952a9a3437d9f0cc4859874db73fa97c4b1.zip
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
Notes
Notes: svn path=/head/; revision=158160
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 735cce316865..adb905a59053 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 {