From: Jens Axboe Date: Mon, 11 Jul 2011 08:24:20 +0000 (+0200) Subject: Fix bug in $mb_memory keyword X-Git-Tag: fio-1.56~11 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8eb016d3727522d580d4dd463aefef58b7ecdb00;ds=inline Fix bug in $mb_memory keyword Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index f1c0ea78..b4456a42 100644 --- a/options.c +++ b/options.c @@ -2091,7 +2091,7 @@ void fio_keywords_init(void) sprintf(buf, "%lu", page_size); fio_keywords[0].replace = strdup(buf); - mb_memory = os_phys_mem() / page_size; + mb_memory = os_phys_mem() / (1024 * 1024); sprintf(buf, "%llu", mb_memory); fio_keywords[1].replace = strdup(buf);