options: 0.00 is a valid gauss dev
authorJens Axboe <axboe@fb.com>
Tue, 17 May 2016 01:13:15 +0000 (19:13 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 17 May 2016 01:13:15 +0000 (19:13 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 71c77b9205a9ade59502c73454e5ce310c018b3d..a9256632d360c3cab7be2a7f67bf77886285cf65 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1047,7 +1047,7 @@ static int str_random_distribution_cb(void *data, const char *str)
                        return 0;
                td->o.pareto_h.u.f = val;
        } else {
                        return 0;
                td->o.pareto_h.u.f = val;
        } else {
-               if (val <= 0.00 || val >= 100.0) {
+               if (val < 0.00 || val >= 100.0) {
                        log_err("fio: normal deviation out of range (0 < input < 100.0)\n");
                        return 1;
                }
                        log_err("fio: normal deviation out of range (0 < input < 100.0)\n");
                        return 1;
                }