diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-11-13 12:33:54 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-11-13 12:33:54 +0100 |
commit | 7a958bd5974368e97058ab17ea94611e4d723da0 (patch) | |
tree | ded860f0e2394fb761a49e004d1b69f9eb16aabb /options.c | |
parent | 892a6ffc5363ad7f1750df9f3ec98624016660cd (diff) | |
download | fio-7a958bd5974368e97058ab17ea94611e4d723da0.tar.gz |
Only do math on known keywords
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1880,13 +1880,15 @@ static char *fio_keyword_replace(char *opt) */ opt = new; free(o_org); + + /* + * Check for potential math and invoke bc, if possible + */ + opt = bc_calc(opt); } } - /* - * Check for potential math and invoke bc, if possible - */ - return bc_calc(opt); + return opt; } int fio_options_parse(struct thread_data *td, char **opts, int num_opts) |