[PATCH] Fixup rate usec cycle calculation for small values
authorJens Axboe <jens.axboe@oracle.com>
Sat, 13 Jan 2007 11:29:13 +0000 (12:29 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 13 Jan 2007 11:29:13 +0000 (12:29 +0100)
commitfb44a18f1bd81b26c3d483c79f5707085bda24dc
treebab0bc40ba6e08413111ace5bc954f88177b4728
parentfd841467ce4a5875dba2d21da6851936b46fdb08
[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>
log.c