From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 29 18:57:52 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0E7516A419 for ; Tue, 29 Jan 2008 18:57:52 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 8E78413C457 for ; Tue, 29 Jan 2008 18:57:52 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JJveZ-0000GK-Il for freebsd-hackers@freebsd.org; Tue, 29 Jan 2008 19:57:51 +0100 Message-ID: <479F771A.1070306@gahr.ch> Date: Tue, 29 Jan 2008 19:57:30 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <479F75D9.4070301@gahr.ch> In-Reply-To: <479F75D9.4070301@gahr.ch> X-Enigmail-Version: 0.95.5 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig6471B2A8076912A9F60B804C" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Subject: Re: struct devstat's bytes[] meaning X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 18:57:52 -0000 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--