projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add time_based option
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 09bbce4c597ea6ca5aae939fe05482c069636cbd..b5f9abcef122f618f546540380f546d1f21db6af 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-274,6
+274,11
@@
static int fixup_options(struct thread_data *td)
return 1;
}
+ if (!o->timeout && o->time_based) {
+ log_err("fio: time_based requires a runtime/timeout setting\n");
+ o->time_based = 0;
+ }
+
return 0;
}