projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for normal/gaussian random distributions
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 0fb5589b7c33ce1aa154c21ecf42cf52a682c4d8..7dceddbbf4dc21077d312dace3fa2321ba04f037 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-998,8
+998,10
@@
static int __init_rand_distribution(struct thread_data *td, struct fio_file *f)
if (td->o.random_distribution == FIO_RAND_DIST_ZIPF)
zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed);
if (td->o.random_distribution == FIO_RAND_DIST_ZIPF)
zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed);
- else
+ else
if (td->o.random_distribution == FIO_RAND_DIST_PARETO)
pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed);
pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed);
+ else if (td->o.random_distribution == FIO_RAND_DIST_GAUSS)
+ gauss_init(&f->gauss, nranges, td->o.gauss_dev, seed);
return 1;
}
return 1;
}