summaryrefslogtreecommitdiff
path: root/src/test/test-procfs-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-22 15:43:07 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-22 17:43:13 +0100
commitc482724aa5c5d0b1391fcf958a9a3ea6ce73a085 (patch)
tree4df4a5c70268457cb7806cca1268da16e3754ae5 /src/test/test-procfs-util.c
parent04ba6ed1677848969e9bd1a36642f8d1507c7d16 (diff)
downloadsystemd-c482724aa5c5d0b1391fcf958a9a3ea6ce73a085.tar.gz
procfs-util: expose functionality to query total memory
procfs_memory_get_current is renamed to procfs_memory_get_used, because "current" can mean anything, including total memory, used memory, and free memory, as long as the value is up to date. No functional change.
Diffstat (limited to 'src/test/test-procfs-util.c')
-rw-r--r--src/test/test-procfs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-procfs-util.c b/src/test/test-procfs-util.c
index 08af380cc7..1d0612985b 100644
--- a/src/test/test-procfs-util.c
+++ b/src/test/test-procfs-util.c
@@ -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);