Commit 812314e7 authored by Julius Plenz's avatar Julius Plenz

cachestats: Include filesize and pagesize

parent 5ae3cb45
......@@ -83,7 +83,9 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
printf("pages in cache: %d/%d (%.1f%%)\n", j, i, 100.0 * j / i);
printf("pages in cache: %d/%d (%.1f%%) [filesize=%.1fK, "
"pagesize=%dK]\n", j, i, 100.0 * j / i,
1.0 * st.st_size / 1024, PAGESIZE / 1024);
#define PAGES_PER_LINE 16
if(verbose) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment