From be7b04cd7e041a290c49911e216f53ce9c3606c0 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Fri, 23 Dec 1994 22:44:55 +0000 Subject: [PATCH] Fixed byte count stat. Submitted by: John Dyson --- sys/scsi/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 1a8ec4c9d897..d01a7deeee33 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.44 1994/12/16 06:03:24 phk Exp $ + * $Id: sd.c,v 1.45 1994/12/22 21:18:48 se Exp $ */ #define SPLSD splbio @@ -649,7 +649,7 @@ sdstart(unit) if(sd->dkunit >= 0) { dk_xfer[sd->dkunit]++; dk_seek[sd->dkunit]++; /* don't know */ - dk_wds[sd->dkunit] += bp->b_bcount >> 1; + dk_wds[sd->dkunit] += bp->b_bcount / DEV_BSIZE; } } else { bad: