]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-procfs-util.c
procfs-util: expose functionality to query total memory
[thirdparty/systemd.git] / src / test / test-procfs-util.c
index 08af380cc7901300c95b4014cb5556972a09d14e..1d0612985bf9f4c480e8c754cdf8437969a79de4 100644 (file)
@@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
         assert_se(procfs_cpu_get_usage(&nsec) >= 0);
         log_info("Current system CPU time: %s", format_timespan(buf, sizeof(buf), nsec/NSEC_PER_USEC, 1));
 
-        assert_se(procfs_memory_get_current(&v) >= 0);
+        assert_se(procfs_memory_get_used(&v) >= 0);
         log_info("Current memory usage: %s", format_bytes(buf, sizeof(buf), v));
 
         assert_se(procfs_tasks_get_current(&v) >= 0);