projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pretty up output a bit
[fio.git]
/
gettime.c
diff --git
a/gettime.c
b/gettime.c
index 0ad8d9244f3a18217631dae029137393207e28db..72fda3f8597e335be2fc4677a208f02db9fa62b7 100644
(file)
--- a/
gettime.c
+++ b/
gettime.c
@@
-5,6
+5,7
@@
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
+#include <time.h>
#include "fio.h"
#include "smalloc.h"
#include "fio.h"
#include "smalloc.h"
@@
-230,7
+231,7
@@
static void calibrate_cpu_clock(void)
for (i = 0; i < 10; i++) {
double this = cycles[i];
for (i = 0; i < 10; i++) {
double this = cycles[i];
- if ((
max(this, mean) -
min(this, mean)) > S)
+ if ((
fmax(this, mean) - f
min(this, mean)) > S)
continue;
samples++;
avg += this;
continue;
samples++;
avg += this;