diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-06-02 19:40:17 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-06-02 19:40:17 +0000 |
commit | 1ff7940dde0b51ff9be56ffa751f4a93c90d65e5 (patch) | |
tree | 6adc6b8ce9e06bd0aa848746cd3ce3ea677e6ec8 /usr.bin/systat/iostat.c | |
parent | b9c0b89618cc1bbe1d4b225d4f5e327a09f95491 (diff) |
it compiles w/ new curses
Diffstat (limited to 'usr.bin/systat/iostat.c')
-rw-r--r-- | usr.bin/systat/iostat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c index d5db76ec76d..ec2b625ba1e 100644 --- a/usr.bin/systat/iostat.c +++ b/usr.bin/systat/iostat.c @@ -132,7 +132,7 @@ numlabels(row) int i, col, regions, ndrives; #define COLWIDTH 14 -#define DRIVESPERLINE ((wnd->maxx - INSET) / COLWIDTH) +#define DRIVESPERLINE ((wnd->_maxx - INSET) / COLWIDTH) for (ndrives = 0, i = 0; i < dk_ndrive; i++) if (cur.dk_select[i]) ndrives++; @@ -140,7 +140,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. @@ -150,9 +150,9 @@ numlabels(row) col = 0; for (i = 0; i < dk_ndrive; i++) if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) { - if (col + COLWIDTH >= wnd->maxx - INSET) { + if (col + COLWIDTH >= wnd->_maxx - INSET) { col = 0, row += linesperregion + 1; - if (row > wnd->maxy - (linesperregion + 1)) + if (row > wnd->_maxy - (linesperregion + 1)) break; } mvwaddstr(wnd, row, col + 4, cur.dk_name[i]); @@ -175,7 +175,7 @@ barlabels(row) linesperregion = 2 + secs; for (i = 0; i < dk_ndrive; i++) if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) { - if (row > wnd->maxy - linesperregion) + if (row > wnd->_maxy - linesperregion) break; mvwprintw(wnd, row++, 0, "%3.3s Kps|", cur.dk_name[i]); mvwaddstr(wnd, row++, 0, " tps|"); @@ -214,7 +214,7 @@ showiostat() row += 2; for (i = 0; i < dk_ndrive; i++) if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) { - if (row > wnd->maxy - linesperregion) + if (row > wnd->_maxy - linesperregion) break; row = stats(row, INSET, i); } @@ -227,9 +227,9 @@ showiostat() winsertln(wnd); for (i = 0; i < dk_ndrive; i++) if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) { - if (col + COLWIDTH >= wnd->maxx) { + if (col + COLWIDTH >= wnd->_maxx) { col = 0, row += linesperregion + 1; - if (row > wnd->maxy - (linesperregion + 1)) + if (row > wnd->_maxy - (linesperregion + 1)) break; wmove(wnd, row + linesperregion, 0); wdeleteln(wnd); |