From 89db727d5baaf32bc665c2addd844da5541249bb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 10 Dec 2012 08:29:56 +0100 Subject: [PATCH] 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 --- gettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1