Skip to content
Browse files

cachestats: Include filesize and pagesize

  • Loading branch information...
1 parent 5ae3cb4 commit 812314e79f2a03c68d5479c4edab6fc6631230c8 @Feh committed Feb 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 cachestats.c
View
4 cachestats.c
@@ -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) {

0 comments on commit 812314e

Please sign in to comment.
Something went wrong with that request. Please try again.