Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6471B2A8076912A9F60B804C
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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 :-)


--=20
Pietro Cerutti

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


--------------enig6471B2A8076912A9F60B804C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHn3cgwMJqmJVx944RConEAJ9Nhdm0NrT7t6ntADw8Q1bmUZ4i1QCfck1F
28ferTITUZIB9Chn0MC8sVs=
=V/u+
-----END PGP SIGNATURE-----

--------------enig6471B2A8076912A9F60B804C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?479F771A.1070306>