projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d3178
)
Fix bug in $mb_memory keyword
author
Jens Axboe
<jaxboe@fusionio.com>
Mon, 11 Jul 2011 08:24:20 +0000
(10:24 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Mon, 11 Jul 2011 08:24:20 +0000
(10:24 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index f1c0ea788ddf0db28fce608ea05ec3962c92237a..b4456a42bca3b53c9fe41896bd8ac65990ca060e 100644
(file)
--- 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);