diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-05-31 02:23:00 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 01:46:16 +0200 |
commit | edb4593c38d421b5d538b221a991b50c36fdba15 (patch) | |
tree | e5828ed9430dafe82b705e0cc47476d5eac99e8f | |
parent | e58f247f9c3a95ea2805fe132777d192ef51f6d1 (diff) |
2010-05-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
* procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Print swap sizes
using %llu.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | procfs_nonpid_files.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2010-05-31 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Print swap sizes + using %llu. + 2008-12-12 Samuel Thibault <samuel.thibault@ens-lyon.org> * procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Divide by diff --git a/procfs_nonpid_files.c b/procfs_nonpid_files.c index d8b3a7d1..2c1209ee 100644 --- a/procfs_nonpid_files.c +++ b/procfs_nonpid_files.c @@ -412,8 +412,8 @@ error_t procfs_read_nonpid_meminfo (struct dir_entry *dir_entry, "HighFree:\t%lu kB\n" "LowTotal:\t%lu kB\n" "LowFree:\t%lu kB\n" - "SwapTotal:\t%lu kB\n" - "SwapFree:\t%lu kB\n", + "SwapTotal:\t%llu kB\n" + "SwapFree:\t%llu kB\n", mem_size, (PAGES_TO_BYTES(vmstats.free_count)) / 1024 , 0, 0, 0, (PAGES_TO_BYTES(vmstats.active_count)) / 1024, (PAGES_TO_BYTES(vmstats.inactive_count)) / 1024, 0, 0, 0, 0, |