]> git.ipfire.org Git - thirdparty/systemd.git/commit
procfs-util: expose functionality to query total memory
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Jan 2019 14:43:07 +0000 (15:43 +0100)
committerLukáš Nykrýn <lnykryn@redhat.com>
Thu, 7 Feb 2019 11:57:43 +0000 (12:57 +0100)
commit60b831ef50e435b66ddd99e635a5112e121c7cb3
treefe0efc8ab86a14249c8a6c374da726484391582a
parent04326c02ca80666e66a5da8e6a46c2fc4476000c
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.

(cherry-picked from commit c482724aa5c5d0b1391fcf958a9a3ea6ce73a085)

Related: #1664976
src/basic/procfs-util.c
src/basic/procfs-util.h
src/cgtop/cgtop.c
src/core/cgroup.c
src/test/test-procfs-util.c