projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gettime: even rounding, don't always round up
[fio.git]
/
gettime.c
diff --git
a/gettime.c
b/gettime.c
index 05625d1bcb202f577d357a8a05fe1b45687fd790..3011d7440738c050fc5ae696720e97bf896926bd 100644
(file)
--- a/
gettime.c
+++ b/
gettime.c
@@
-273,7
+273,7
@@
static void calibrate_cpu_clock(void)
dprint(FD_TIME, "cycles[%d]=%lu\n", i, cycles[i] / 10);
avg /= samples;
- avg = (avg +
9
) / 10;
+ avg = (avg +
5
) / 10;
dprint(FD_TIME, "avg: %lu\n", avg);
dprint(FD_TIME, "mean=%f, S=%f\n", mean, S);