misc: adapted other programs to changes, <MEMINFO> api
This patch just brings *most* other programs into line with those changes recently made in the <meminfo> API. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -104,10 +104,7 @@ static void get_memory_total()
|
||||
if (procps_meminfo_new(&mem_info) < 0)
|
||||
xerrx(EXIT_FAILURE,
|
||||
_("Unable to create meminfo structure"));
|
||||
if (procps_meminfo_read(mem_info) < 0)
|
||||
xerrx(EXIT_FAILURE,
|
||||
_("Unable to read meminfo information"));
|
||||
memory_total = procps_meminfo_get(mem_info, PROCPS_MEM_TOTAL);
|
||||
memory_total = procps_meminfo_get(mem_info, PROCPS_MEMINFO_MEM_TOTAL);
|
||||
procps_meminfo_unref(&mem_info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user