summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-30 08:18:09 +0000
committerpeter <peter@FreeBSD.org>1999-08-30 08:18:09 +0000
commitce5c0946e0a212c993ee42f6c191e939621e713b (patch)
tree2d5c8200b417a3171cfad34c9d059676f9c634f5 /usr.bin/systat
parent496e2f9771b8db040f7666965e8d165410fc1084 (diff)
downloadFreeBSD-src-ce5c0946e0a212c993ee42f6c191e939621e713b.zip
FreeBSD-src-ce5c0946e0a212c993ee42f6c191e939621e713b.tar.gz
systat is way too comfortable with curses internals...
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/iostat.c16
-rw-r--r--usr.bin/systat/mbufs.c4
-rw-r--r--usr.bin/systat/netstat.c2
-rw-r--r--usr.bin/systat/pigs.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c
index b499a8b..edeab4b 100644
--- a/usr.bin/systat/iostat.c
+++ b/usr.bin/systat/iostat.c
@@ -214,7 +214,7 @@ numlabels(row)
char tmpstr[10];
#define COLWIDTH 17
-#define DRIVESPERLINE ((wnd->maxx - INSET) / COLWIDTH)
+#define DRIVESPERLINE ((wnd->_maxx - INSET) / COLWIDTH)
for (ndrives = 0, i = 0; i < num_devices; i++)
if (dev_select[i].selected)
ndrives++;
@@ -222,7 +222,7 @@ numlabels(row)
/*
* Deduct -regions for blank line after each scrolling region.
*/
- linesperregion = (wnd->maxy - row - regions) / regions;
+ linesperregion = (wnd->_maxy - row - regions) / regions;
/*
* Minimum region contains space for two
* label lines and one line of statistics.
@@ -232,9 +232,9 @@ numlabels(row)
col = INSET;
for (i = 0; i < num_devices; i++)
if (dev_select[i].selected) {
- if (col + COLWIDTH >= wnd->maxx - INSET) {
+ if (col + COLWIDTH >= wnd->_maxx - INSET) {
col = INSET, row += linesperregion + 1;
- if (row > wnd->maxy - (linesperregion + 1))
+ if (row > wnd->_maxy - (linesperregion + 1))
break;
}
sprintf(tmpstr, "%s%d", dev_select[i].device_name,
@@ -260,7 +260,7 @@ barlabels(row)
linesperregion = 2 + kbpt;
for (i = 0; i < num_devices; i++)
if (dev_select[i].selected) {
- if (row > wnd->maxy - linesperregion)
+ if (row > wnd->_maxy - linesperregion)
break;
sprintf(tmpstr, "%s%d", dev_select[i].device_name,
dev_select[i].unit_number);
@@ -296,7 +296,7 @@ showiostat()
row += 2;
for (i = 0; i < num_devices; i++)
if (dev_select[i].selected) {
- if (row > wnd->maxy - linesperregion)
+ if (row > wnd->_maxy - linesperregion)
break;
row = devstats(row, INSET, i);
}
@@ -309,9 +309,9 @@ showiostat()
winsertln(wnd);
for (i = 0; i < num_devices; i++)
if (dev_select[i].selected) {
- if (col + COLWIDTH >= wnd->maxx - INSET) {
+ if (col + COLWIDTH >= wnd->_maxx - INSET) {
col = INSET, row += linesperregion + 1;
- if (row > wnd->maxy - (linesperregion + 1))
+ if (row > wnd->_maxy - (linesperregion + 1))
break;
wmove(wnd, row + linesperregion, 0);
wdeleteln(wnd);
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c
index f542da9..5e42861 100644
--- a/usr.bin/systat/mbufs.c
+++ b/usr.bin/systat/mbufs.c
@@ -103,9 +103,9 @@ showmbufs()
if (mb == 0)
return;
- for (j = 0; j < wnd->maxy; j++) {
+ for (j = 0; j < wnd->_maxy; j++) {
max = 0, index = -1;
- for (i = 0; i < wnd->maxy; i++) {
+ for (i = 0; i < wnd->_maxy; i++) {
if (i == MT_FREE)
continue;
if (mb->m_mtypes[i] > max) {
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index ba53fda..305c133 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -81,7 +81,7 @@ static char *inetname __P((struct in_addr));
static void inetprint __P((struct in_addr *, int, char *));
#define streq(a,b) (strcmp(a,b)==0)
-#define YMAX(w) ((w)->maxy-1)
+#define YMAX(w) ((w)->_maxy-1)
WINDOW *
opennetstat()
diff --git a/usr.bin/systat/pigs.c b/usr.bin/systat/pigs.c
index 8af36c8..ba9b60a 100644
--- a/usr.bin/systat/pigs.c
+++ b/usr.bin/systat/pigs.c
@@ -110,8 +110,8 @@ showpigs()
qsort(pt, nproc + 1, sizeof (struct p_times), compar);
y = 1;
i = nproc + 1;
- if (i > wnd->maxy-1)
- i = wnd->maxy-1;
+ if (i > wnd->_maxy-1)
+ i = wnd->_maxy-1;
for (k = 0; i > 0 && pt[k].pt_pctcpu > 0.01; i--, y++, k++) {
if (pt[k].pt_kp == NULL) {
uname = "";
OpenPOWER on IntegriCloud