aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2006-04-30 09:13:59 +0000
committerBruce Evans <bde@FreeBSD.org>2006-04-30 09:13:59 +0000
commit3bccedcdf8e313009b068e38f48d159bcba9c14b (patch)
tree7ef760561d04a87cd37080a33456ed50381704cb /usr.bin/systat
parenta864f9d61cb67864346db6f0bc3cfe35872a1384 (diff)
downloadsrc-3bccedcdf8e313009b068e38f48d159bcba9c14b.tar.gz
src-3bccedcdf8e313009b068e38f48d159bcba9c14b.zip
Don't redraw the disk names on every update. This was apparently done
to handle changes to the set of disks selected, but it is unnecessary for that since the whole screen is redrawn when this set is changed. It was also buggy: - MAXDRIVES*6 = 42 was hard-coded as only 30 spaces in a string literal, the last 2 disk names were not cleared as intended - when the extended vmstats are active, clearing of even 30 columns overruns the ozfod value field by 3 columns. This was harmless because the field is much wider than necessary.
Notes
Notes: svn path=/head/; revision=158174
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 2ca4e8a633b6..aa1b256b3e92 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -560,14 +560,8 @@ showkre()
PUTRATE(v_intr, GENSTATROW + 1, GENSTATCOL + 15, 4);
PUTRATE(v_soft, GENSTATROW + 1, GENSTATCOL + 20, 4);
PUTRATE(v_vm_faults, GENSTATROW + 1, GENSTATCOL + 25, 4);
- mvprintw(DISKROW, DISKCOL + 5, " ");
for (i = 0, lc = 0; i < num_devices && lc < MAXDRIVES; i++)
if (dev_select[i].selected) {
- char tmpstr[80];
- sprintf(tmpstr, "%s%d", dev_select[i].device_name,
- dev_select[i].unit_number);
- mvprintw(DISKROW, DISKCOL + 5 + 6 * lc,
- " %5.5s", tmpstr);
switch(state) {
case TIME:
dinfo(i, ++lc, &cur, &last);