Increase accuracy of disk utility percentage
authorJens Axboe <jens.axboe@oracle.com>
Wed, 27 May 2009 11:11:20 +0000 (13:11 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 27 May 2009 11:11:20 +0000 (13:11 +0200)
commitc97bd0fa0f68d924f4e6f3c480f380c4ca20b872
treec487b2b8677710352ca003991a467f998abb6730
parent398e8c4ddb1e4c05159cf86b6367156bdfd2b084
Increase accuracy of disk utility percentage

If a job file contains more than one job that works on separate
disks, then the job that finishes first will get more idle time
accounted to it.

Fix this by only doing disk util stats when we have files open
on that device.

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