projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug in $mb_memory keyword
[fio.git]
/
options.c
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);