diff options
author | bde <bde@FreeBSD.org> | 1994-12-24 09:43:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-12-24 09:43:12 +0000 |
commit | 0b71a7ab6b8be9f8af7023f247c9b9750277269f (patch) | |
tree | 3d4d5f1c48ce81d7c9c7d8aec381258357708ff3 /sys | |
parent | 26c593819033a256ca80bb6cc249e001bd26f4b6 (diff) | |
download | FreeBSD-src-0b71a7ab6b8be9f8af7023f247c9b9750277269f.zip FreeBSD-src-0b71a7ab6b8be9f8af7023f247c9b9750277269f.tar.gz |
Fix the "wd" count stat. The seek and xfer stats are still very bogus
for wd (they both count the number of sectors). The wpms stat is still
moderately bogus for all drivers. Even the count stat could be handled
better (partial blocks should be counted as full blocks; should errors
and retries be counted?).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/wd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c index da5d3ee..87e695c 100644 --- a/sys/i386/isa/wd.c +++ b/sys/i386/isa/wd.c @@ -37,7 +37,7 @@ static int wdtest = 0; * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.61 1994/11/18 11:27:41 phk Exp $ + * $Id: wd.c,v 1.62 1994/12/13 18:20:08 guido Exp $ */ /* TODO: @@ -621,7 +621,7 @@ loop: secpercyl = lp->d_secpercyl; if(du->dk_dkunit >= 0) { - dk_wds[du->dk_dkunit] += bp->b_bcount >> 1; + dk_wds[du->dk_dkunit] += bp->b_bcount >> 6; } if (du->dk_skip == 0) { |