summaryrefslogtreecommitdiff
path: root/procfs_nonpid_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'procfs_nonpid_files.c')
-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 15c0919..d8b3a7d 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));