From: Jens Axboe Date: Mon, 10 Dec 2012 07:29:56 +0000 (+0100) Subject: gettime: fix CPU calibration reported mean X-Git-Tag: fio-2.0.12~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=89db727d5baaf32bc665c2addd844da5541249bb 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 --- 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);