summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-12-10 08:29:56 +0100
committerJens Axboe <axboe@kernel.dk>2012-12-10 08:29:56 +0100
commit89db727d5baaf32bc665c2addd844da5541249bb (patch)
treec9fb205cbf0fd750a84fcb0c10402b1b9b604410 /gettime.c
parentc011000deaf5131861a2bd1fb2ac72582418e891 (diff)
downloadfio-89db727d5baaf32bc665c2addd844da5541249bb.tar.gz
fio-89db727d5baaf32bc665c2addd844da5541249bb.tar.bz2
gettime: fix CPU calibration reported mean
Bug introduced in fa80feae. It only affected the reported mean if --debug=time was used, cosmetic issue. 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 a60b35f6..df42c29c 100644
--- a/gettime.c
+++ b/gettime.c
@@ -242,7 +242,7 @@ static void calibrate_cpu_clock(void)
}
S /= (double) NR_TIME_ITERS;
- mean /= (double) NR_TIME_ITERS;
+ mean /= 10.0;
for (i = 0; i < NR_TIME_ITERS; i++)
dprint(FD_TIME, "cycles[%d]=%lu\n", i, cycles[i] / 10);