From 8eb016d3727522d580d4dd463aefef58b7ecdb00 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 11 Jul 2011 10:24:20 +0200 Subject: [PATCH] Fix bug in $mb_memory keyword Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1