X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=9d471bbdc8da612d9b5e3637a19eaa2f06d2368e;hp=3af604bd86f4d01ac2abd4d6394960bbd8af4a47;hb=e6a6a9844038b1e4dd8f979c37579be695c770d0;hpb=ec55e631a976779b94dc22f5ea5b229890bd5a6c diff --git a/options.c b/options.c index 3af604bd..9d471bbd 100644 --- a/options.c +++ b/options.c @@ -1099,7 +1099,7 @@ static int str_steadystate_cb(void *data, const char *str) if (parse_dryrun()) return 0; - td->o.ss_pct = true; + td->o.ss |= __FIO_SS_PCT; td->o.ss_limit.u.f = val; } else if (td->o.ss & __FIO_SS_IOPS) { if (!str_to_float(nr, &val, 0)) { @@ -1113,9 +1113,7 @@ static int str_steadystate_cb(void *data, const char *str) if (parse_dryrun()) return 0; - td->o.ss_pct = false; td->o.ss_limit.u.f = val; - } else { /* bandwidth criterion */ if (str_to_decimal(nr, &ll, 1, td, 0, 0)) { log_err("fio: steadystate BW threshold postfix parsing failed\n"); @@ -1128,9 +1126,7 @@ static int str_steadystate_cb(void *data, const char *str) if (parse_dryrun()) return 0; - td->o.ss_pct = false; td->o.ss_limit.u.f = (double) ll; - } td->ss.state = td->o.ss;