X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=options.c;h=07589c47509787719362f0b6b2d0fefe2b3eb4f2;hb=0f989d2e18edda0a4aa979ddfafff4d255681a68;hp=71c77b9205a9ade59502c73454e5ce310c018b3d;hpb=8c07860de982fabaaf41d44c22aa86aba2539b58;p=fio.git diff --git a/options.c b/options.c index 71c77b92..07589c47 100644 --- a/options.c +++ b/options.c @@ -788,7 +788,7 @@ static int str_fst_cb(void *data, const char *str) break; case FIO_FSERVICE_GAUSS: if (val < 0.00 || val >= 100.00) { - log_err("fio: normal deviation out of range (0 < input < 100.0 )\n"); + log_err("fio: normal deviation out of range (0 <= input < 100.0)\n"); return 1; } if (parse_dryrun()) @@ -1047,8 +1047,8 @@ static int str_random_distribution_cb(void *data, const char *str) return 0; td->o.pareto_h.u.f = val; } else { - if (val <= 0.00 || val >= 100.0) { - log_err("fio: normal deviation out of range (0 < input < 100.0)\n"); + if (val < 0.00 || val >= 100.0) { + log_err("fio: normal deviation out of range (0 <= input < 100.0)\n"); return 1; } if (parse_dryrun())