]> git.itanic.dy.fi Git - scan-pagemap/commit
print_page_stats: Reserve 7 digits for page count alignment
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 11 Jun 2012 19:19:55 +0000 (22:19 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 11 Jun 2012 19:19:55 +0000 (22:19 +0300)
commit4e1af4733669d840d1591d870b3fdbe1c717e800
tree9aa4bdfee82a4bc63894204835a9b67c0250aefe
parent1273c6165f1785093d70ac5e98e140b15bb6e0d5
print_page_stats: Reserve 7 digits for page count alignment

If there are mappings that are larger than 4 gigabytes, 6 digits is
not enough for the output. 7 digits is enough until 40 gigabytes,
which should probably be enough in most of users. If someone has got
more than 40 gigabytes of ram and wants to have nicely aligned page
usage prints, I'm happy to implement some sort of dynamic
alignmenting for it..

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
analyze.c