chiark / gitweb /
core: cache last CPU usage counter, before destorying a cgroup
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Aug 2016 18:58:10 +0000 (20:58 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:51 +0000 (08:50 +0200)
commit2613a7d715f38d766dc2998aa4e704494f2a58ea
tree6c20ea8c5c32b1da372fb904011b7a579a959af7
parentd46558812b735184c1c9b2a13c7b3587d6c1e271
core: cache last CPU usage counter, before destorying a cgroup

It is useful for clients to be able to read the last CPU usage counter value of
a unit even if the unit is already terminated. Hence, before destroying a
cgroup's cgroup cache the last CPU usage counter and return it if the cgroup is
gone.
src/core/cgroup.c