Re: struct devstat's bytes[] meaning
- From: Pietro Cerutti <gahr@xxxxxxx>
- Date: Tue, 29 Jan 2008 19:57:30 +0100
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
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- struct devstat's bytes[] meaning
- From: Pietro Cerutti
- struct devstat's bytes[] meaning
- Prev by Date: struct devstat's bytes[] meaning
- Next by Date: Re: struct devstat's bytes[] meaning
- Previous by thread: struct devstat's bytes[] meaning
- Next by thread: Re: struct devstat's bytes[] meaning
- Index(es):