struct devstat's bytes[] meaning

Pietro Cerutti gahr at gahr.ch
Tue Jan 29 10:57:52 PST 2008


Pietro Cerutti wrote:
>
>       printf("%s%d\t%.2lf MB\t%.2lf MB\n", d_stat->device_name,
>              d_stat->unit_number,
>              d_stat->bytes[1] / d_stat->block_size / MB,
>              d_stat->bytes[2] / d_stat->block_size / MB);

yes, it should have been d_stat->bytes[DEVSTAT_READ] and
d_stat->bytes[DEVSTAT_WRITE] instead, but it doesn't matter for my
question :-)


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080129/539495aa/signature.pgp


More information about the freebsd-hackers mailing list