summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-12-12 01:48:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:45:34 +0200
commit2f4aea7d25b7aeca6ee36126a375644acfab3cee (patch)
treef8cc916cbd168c380e3d3d4536b702f6e623b029
parentdb2336ab8d2c9e0f6ddf057918a3a19d5a31de97 (diff)
2008-12-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
* procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Divide by 1024 value returned by get_swap_size and get_swap_free to get kilobytes.
-rw-r--r--procfs_nonpid_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs_nonpid_files.c b/procfs_nonpid_files.c
index 15c09190..d8b3a7d1 100644
--- a/procfs_nonpid_files.c
+++ b/procfs_nonpid_files.c
@@ -417,7 +417,7 @@ error_t procfs_read_nonpid_meminfo (struct dir_entry *dir_entry,
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,
- get_swap_size (), get_swap_free ()) == -1)
+ get_swap_size () / 1024, get_swap_free () / 1024) == -1)
return errno;
memcpy (data, meminfo_data, strlen(meminfo_data));