projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
892a6ff
)
Only do math on known keywords
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 13 Nov 2009 11:33:54 +0000
(12:33 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 13 Nov 2009 11:33:54 +0000
(12:33 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index 211bca743048e5a16893634930a85b4eaa7f0e83..4544378eb16e6a0aa187eb7f303c1f63457f4ec7 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-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)