diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-22 15:43:07 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-22 17:43:13 +0100 |
commit | c482724aa5c5d0b1391fcf958a9a3ea6ce73a085 (patch) | |
tree | 4df4a5c70268457cb7806cca1268da16e3754ae5 /src/cgtop/cgtop.c | |
parent | Merge pull request #11501 from yuwata/fix-9426 (diff) | |
download | systemd-c482724aa5c5d0b1391fcf958a9a3ea6ce73a085.tar.xz systemd-c482724aa5c5d0b1391fcf958a9a3ea6ce73a085.zip |
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/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 11cc5fa2e9..b3bda30cec 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -291,7 +291,7 @@ static int process( } else if (streq(controller, "memory")) { if (is_root_cgroup(path)) { - r = procfs_memory_get_current(&g->memory); + r = procfs_memory_get_used(&g->memory); if (r < 0) return r; } else { |