summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2020-03-17 20:53:31 +0800
committerJens Axboe <axboe@kernel.dk>2020-03-17 08:56:27 -0600
commit9853da1df43fb5b91097813651f69f50ca098a41 (patch)
treef3fdbb3dca950e4b0685a2229414e9e486122647 /lib
parent5e8865c0e08861558c1253c521dc9098d0c773ee (diff)
downloadfio-9853da1df43fb5b91097813651f69f50ca098a41.tar.gz
fio-9853da1df43fb5b91097813651f69f50ca098a41.tar.bz2
gauss.c: correct the stddev initializtion
Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib')
-rw-r--r--lib/gauss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gauss.c b/lib/gauss.c
index 1d24e187..3f84dbc6 100644
--- a/lib/gauss.c
+++ b/lib/gauss.c
@@ -51,7 +51,7 @@ void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev,
gs->nranges = nranges;
if (dev != 0.0) {
- gs->stddev = ceil((double) (nranges * 100.0) / dev);
+ gs->stddev = ceil((double)(nranges * dev) / 100.0);
if (gs->stddev > nranges / 2)
gs->stddev = nranges / 2;
}