mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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?).
This commit is contained in:
parent
026c9b2ce6
commit
11fa0751bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5222
1 changed files with 2 additions and 2 deletions
|
@ -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 @@ wdstart(int ctrlr)
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue