projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce enum n2s_unit
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 07d1cdd31df2b1cba4f4ce8a07b3c4ed96e92353..9257d47c0180af0ff4635418eb4718d254297df4 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-833,11
+833,11
@@
static int fixup_options(struct thread_data *td)
}
}
- if (
!o->unit_base
) {
+ if (
o->unit_base == N2S_NONE
) {
if (td_ioengine_flagged(td, FIO_BIT_BASED))
- o->unit_base =
1
;
+ o->unit_base =
N2S_BITPERSEC
;
else
- o->unit_base =
8
;
+ o->unit_base =
N2S_BYTEPERSEC
;
}
#ifndef FIO_HAVE_ANY_FALLOCATE