[PATCH] Improve rate functionality
authorJens Axboe <jens.axboe@oracle.com>
Sat, 13 Jan 2007 11:20:30 +0000 (12:20 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 13 Jan 2007 11:20:30 +0000 (12:20 +0100)
commitfd841467ce4a5875dba2d21da6851936b46fdb08
tree5f039256e9aa5b83cf8ac3e82e1090c30f3fd27c
parent6ce15a32b28f359b3753ef65d883ab2d824e19f2
[PATCH] Improve rate functionality

usec_sleep() now takes into account the granularity of nanosleep().
Also stop using the remainder returned by nanosleep(), it doesn't
appear to always be accurate. Instead just check the elapsed time
manually.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
time.c