Date: Tue, 29 Jan 2008 19:57:30 +0100 From: Pietro Cerutti <gahr@gahr.ch> To: freebsd-hackers@freebsd.org Subject: Re: struct devstat's bytes[] meaning Message-ID: <479F771A.1070306@gahr.ch> In-Reply-To: <479F75D9.4070301@gahr.ch> References: <479F75D9.4070301@gahr.ch>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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 #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFHn3cgwMJqmJVx944RConEAJ9Nhdm0NrT7t6ntADw8Q1bmUZ4i1QCfck1F
28ferTITUZIB9Chn0MC8sVs=
=V/u+
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?479F771A.1070306>
