commit | fb44a18f1bd81b26c3d483c79f5707085bda24dc | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Sat Jan 13 12:29:13 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Sat Jan 13 12:29:13 2007 +0100 |
tree | bab0bc40ba6e08413111ace5bc954f88177b4728 | |
parent | fd841467ce4a5875dba2d21da6851936b46fdb08 [diff] |
[PATCH] Fixup rate usec cycle calculation for small values If someone set rate to 2KiB/sec or something low in that range, we would integer divide by zero. Do calculation in reads per msec instead of full seconds and fix the zero division. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>