看板 FB_hackers 關於我們 聯絡資訊
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--