diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-11 16:18:58 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-11 16:18:58 +0000 |
commit | 94591e176e288171ae18822cfd4c68caf2ed8c6d (patch) | |
tree | baf8ff8be11d16eed554e1829cd1e42ab969e4a9 /usr.bin/systat | |
parent | 8f33d986bca17450cd61d5cfffe90976aca53d8a (diff) | |
download | src-94591e176e288171ae18822cfd4c68caf2ed8c6d.tar.gz src-94591e176e288171ae18822cfd4c68caf2ed8c6d.zip |
Notes
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/iostat.c | 12 | ||||
-rw-r--r-- | usr.bin/systat/systat.1 | 4 | ||||
-rw-r--r-- | usr.bin/systat/vmstat.c | 4 |
3 files changed, 11 insertions, 9 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c index 7c066f12e4d3..33e99690978d 100644 --- a/usr.bin/systat/iostat.c +++ b/usr.bin/systat/iostat.c @@ -199,11 +199,11 @@ numlabels(row) */ if (linesperregion < 3) linesperregion = 3; - col = 0; + col = INSET; for (i = 0; i < dk_ndrive; i++) if (dk_select[i] && dk_mspw[i] != 0.0) { if (col + COLWIDTH >= wnd->maxx - INSET) { - col = 0, row += linesperregion + 1; + col = INSET, row += linesperregion + 1; if (row > wnd->maxy - (linesperregion + 1)) break; } @@ -229,7 +229,7 @@ barlabels(row) if (dk_select[i] && dk_mspw[i] != 0.0) { if (row > wnd->maxy - linesperregion) break; - mvwprintw(wnd, row++, 0, "%3.3s bps|", dr_name[i]); + mvwprintw(wnd, row++, 0, "%-4.4s bps|", dr_name[i]); mvwaddstr(wnd, row++, 0, " tps|"); if (msps) mvwaddstr(wnd, row++, 0, " msps|"); @@ -271,15 +271,15 @@ showiostat() } return; } - col = 0; + col = INSET; wmove(wnd, row + linesperregion, 0); wdeleteln(wnd); wmove(wnd, row + 3, 0); winsertln(wnd); for (i = 0; i < dk_ndrive; i++) if (dk_select[i] && dk_mspw[i] != 0.0) { - if (col + COLWIDTH >= wnd->maxx) { - col = 0, row += linesperregion + 1; + if (col + COLWIDTH >= wnd->maxx - INSET) { + col = INSET, row += linesperregion + 1; if (row > wnd->maxy - (linesperregion + 1)) break; wmove(wnd, row + linesperregion, 0); diff --git a/usr.bin/systat/systat.1 b/usr.bin/systat/systat.1 index 8911401505e0..4d5e77a8a671 100644 --- a/usr.bin/systat/systat.1 +++ b/usr.bin/systat/systat.1 @@ -229,7 +229,9 @@ It reports the number of seeks, transfers, and number of kilobyte blocks transferred per second averaged over the refresh period of the display (by default, five seconds). For some disks it also reports the average milliseconds per seek. -Note that the system only keeps statistics on at most four disks. +Note that the system only keeps statistics on at most eight disks +(this is controlled by the constant DK_NDRIVE in /sys/dkstat.h as +a kernel compile-time constant). .Pp Below the disk display is a list of the average number of processes (over the last refresh interval) diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index bfbde6c95c2b..5516b19a2250 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -330,7 +330,7 @@ labelkre() for (i = 0; i < dk_ndrive && j < MAXDRIVES; i++) if (dk_select[i]) { mvprintw(DISKROW, DISKCOL + 5 + 5 * j, - " %3.3s", dr_name[j]); + " %4.4s", dr_name[j]); j++; } for (i = 0; i < nintr; i++) { @@ -476,7 +476,7 @@ showkre() for (i = 0, c = 0; i < dk_ndrive && c < MAXDRIVES; i++) if (dk_select[i]) { mvprintw(DISKROW, DISKCOL + 5 + 5 * c, - " %3.3s", dr_name[i]); + " %4.4s", dr_name[i]); dinfo(i, ++c); } putint(s.nchcount, NAMEIROW + 2, NAMEICOL, 9); |