summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-12-10 08:29:03 +0100
committerJens Axboe <axboe@kernel.dk>2012-12-10 08:29:03 +0100
commitc011000deaf5131861a2bd1fb2ac72582418e891 (patch)
tree066e0a81c8e0448dc9b4e9a5a7d01df8e48e5e27 /gettime.c
parent486332e567826eb284bfd9064440867f31fccd7f (diff)
downloadfio-c011000deaf5131861a2bd1fb2ac72582418e891.tar.gz
fio-c011000deaf5131861a2bd1fb2ac72582418e891.tar.bz2
gettime: calibration rounding error
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettime.c b/gettime.c
index 549c35e9..a60b35f6 100644
--- a/gettime.c
+++ b/gettime.c
@@ -207,7 +207,7 @@ static unsigned long get_cycles_per_usec(void)
}
} while (1);
- return (c_e - c_s) >> 7;
+ return (c_e - c_s + 127) >> 7;
}
#define NR_TIME_ITERS 50